Disable separate notification for new email

This commit is contained in:
M66B
2018-08-05 10:56:24 +00:00
parent 966a3ed4ca
commit fccca5ee4e
3 changed files with 75 additions and 9 deletions

View File

@@ -164,6 +164,20 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
return true;
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
menu.findItem(R.id.menu_folders).setVisible(prefs.getBoolean("eula", false));
return super.onPrepareOptionsMenu(menu);
}
@Override
protected void onNewIntent(Intent intent) {
Log.i(Helper.TAG, "New intent=" + intent);
getSupportFragmentManager().popBackStack("unified", 0);
super.onNewIntent(intent);
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
@@ -222,6 +236,7 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
private void init() {
syncState();
invalidateOptionsMenu();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (prefs.getBoolean("eula", false)) {