Skip to content

Commit

Permalink
Fixing Back key in Settings on Meta Oculus devices
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Jul 15, 2024
1 parent 647e787 commit 1cc9125
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/com/termux/x11/LoriePreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();

if (id == android.R.id.home) {
onBackPressed();
if (getSupportFragmentManager().getBackStackEntryCount() == 0)
finish();
else
onBackPressed();

return true;
}

Expand Down

0 comments on commit 1cc9125

Please sign in to comment.