|
|
|
@ -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();
|
|
|
|
|