Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Nov 12, 2025

  • Tests written, or not not needed

Fixes

Fixes drawer menu highlighting and transition from SettingsActivity.

Old related PR: #15384

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.34


@SuppressLint("GestureBackNavigation")
@Override
public void onBackPressed() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to override the back press behavior, since the back press will handle itself and display whatever is in the stack.

contactsPreferenceActivity.finish()
} else {
val settingsIntent = Intent(context, SettingsActivity::class.java)
settingsIntent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't clear stack so that we can go back from SettingsActivity

handleMnemonicRequest(data);
} else if (requestCode == ACTION_E2E && data != null && data.getBooleanExtra(SetupEncryptionDialogFragment.SUCCESS, false)) {
Intent i = new Intent(this, SettingsActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't clear stack so that we can go back from SettingsActivity

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15949.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants