Fix back navigation in preferences when pressing the home action button

This commit is contained in:
Alexander Bakker 2022-10-16 13:27:20 +02:00
parent 3d124d225e
commit 681326839c

View file

@ -75,7 +75,7 @@ public class PreferencesActivity extends AegisActivity implements
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
getOnBackPressedDispatcher().onBackPressed();
} else {
return super.onOptionsItemSelected(item);
}