Skip to content

Commit

Permalink
android: use alternative way for back button (trivial)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed May 7, 2024
1 parent 6c321d0 commit e4efcd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 5 additions & 2 deletions android/yass/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@

<activity
android:name=".SettingsActivity"
android:label="@string/title_options"
android:exported="true">
android:exported="true"
android:label="@string/title_options">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>

<service
Expand Down
6 changes: 0 additions & 6 deletions android/yass/src/main/java/it/gui/yass/SettingsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ protected void onCreate(Bundle savedInstanceState) {
getFragmentManager().beginTransaction().add(R.id.idFrameLayout, new YassSettingsFragment()).commit();
}
}

@Override
public boolean onSupportNavigateUp() {
finish();
return true;
}
}

0 comments on commit e4efcd1

Please sign in to comment.