mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-17 15:32:52 +00:00
Fix back navigation in preferences when pressing the home action button
This commit is contained in:
parent
3d124d225e
commit
681326839c
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class PreferencesActivity extends AegisActivity implements
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
if (item.getItemId() == android.R.id.home) {
|
if (item.getItemId() == android.R.id.home) {
|
||||||
finish();
|
getOnBackPressedDispatcher().onBackPressed();
|
||||||
} else {
|
} else {
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue