mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Added advanced options action bar menu
This commit is contained in:
@@ -360,6 +360,9 @@ public class FragmentSetup extends FragmentBase {
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.menu_advanced:
|
||||
onMenuAdvanced();
|
||||
return true;
|
||||
case R.id.menu_help:
|
||||
onMenuHelp();
|
||||
return true;
|
||||
@@ -368,6 +371,12 @@ public class FragmentSetup extends FragmentBase {
|
||||
}
|
||||
}
|
||||
|
||||
private void onMenuAdvanced() {
|
||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(R.id.content_frame, new FragmentOptions()).addToBackStack("options");
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
||||
private void onMenuHelp() {
|
||||
startActivity(getIntentHelp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user