|
|
|
|
@ -636,24 +636,24 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_empty_spam, order++, R.string.title_empty_spam);
|
|
|
|
|
|
|
|
|
|
if (folder.account != null && folder.accountProtocol == EntityAccount.TYPE_IMAP)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_synchronize_enabled, order++, R.string.title_synchronize_enabled)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST + 1, R.string.title_synchronize_enabled, order++, R.string.title_synchronize_enabled)
|
|
|
|
|
.setCheckable(true).setChecked(folder.synchronize);
|
|
|
|
|
|
|
|
|
|
if (folder.account != null) {
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_notify_folder, order++, R.string.title_notify_folder)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST + 1, R.string.title_notify_folder, order++, R.string.title_notify_folder)
|
|
|
|
|
.setCheckable(true).setChecked(folder.notify);
|
|
|
|
|
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_unified_folder, order++, R.string.title_unified_folder)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST + 1, R.string.title_unified_folder, order++, R.string.title_unified_folder)
|
|
|
|
|
.setCheckable(true).setChecked(folder.unified);
|
|
|
|
|
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_navigation_folder, order++, R.string.title_navigation_folder)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST + 1, R.string.title_navigation_folder, order++, R.string.title_navigation_folder)
|
|
|
|
|
.setCheckable(true).setChecked(folder.navigation);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (folder.account != null && folder.accountProtocol == EntityAccount.TYPE_IMAP) {
|
|
|
|
|
boolean subscriptions = prefs.getBoolean("subscriptions", false);
|
|
|
|
|
if (subscriptions && !folder.read_only)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_subscribe, order++, R.string.title_subscribe)
|
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST + 1, R.string.title_subscribe, order++, R.string.title_subscribe)
|
|
|
|
|
.setCheckable(true).setChecked(folder.subscribed != null && folder.subscribed);
|
|
|
|
|
|
|
|
|
|
if (!folder.read_only) {
|
|
|
|
|
|