mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Change theme from start screen
This commit is contained in:
@@ -298,6 +298,7 @@ public class FragmentAccounts extends FragmentBase {
|
||||
public void onPrepareOptionsMenu(Menu menu) {
|
||||
menu.findItem(R.id.menu_search).setVisible(!settings);
|
||||
menu.findItem(R.id.menu_unified).setVisible(!settings);
|
||||
menu.findItem(R.id.menu_theme).setVisible(!settings);
|
||||
|
||||
super.onPrepareOptionsMenu(menu);
|
||||
}
|
||||
@@ -311,6 +312,9 @@ public class FragmentAccounts extends FragmentBase {
|
||||
case R.id.menu_unified:
|
||||
onMenuUnified();
|
||||
return true;
|
||||
case R.id.menu_theme:
|
||||
onMenuTheme();
|
||||
return true;
|
||||
case R.id.menu_force_sync:
|
||||
onMenuForceSync();
|
||||
return true;
|
||||
@@ -336,6 +340,10 @@ public class FragmentAccounts extends FragmentBase {
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
||||
private void onMenuTheme() {
|
||||
new FragmentDialogTheme().show(getParentFragmentManager(), "messages:theme");
|
||||
}
|
||||
|
||||
private void onMenuForceSync() {
|
||||
ServiceSynchronize.reload(getContext(), null, true, "force sync");
|
||||
ToastEx.makeText(getContext(), R.string.title_executing, Toast.LENGTH_LONG).show();
|
||||
|
||||
Reference in New Issue
Block a user