|
|
@ -3477,8 +3477,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
menu.findItem(R.id.menu_sort_on_snoozed).setVisible(false);
|
|
|
|
menu.findItem(R.id.menu_sort_on_snoozed).setVisible(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
menu.findItem(R.id.menu_empty_trash).setVisible(EntityFolder.TRASH.equals(type) && folder);
|
|
|
|
boolean unselected = (selectionTracker == null || !selectionTracker.hasSelection());
|
|
|
|
menu.findItem(R.id.menu_empty_spam).setVisible(EntityFolder.JUNK.equals(type) && folder);
|
|
|
|
menu.findItem(R.id.menu_empty_trash).setVisible(EntityFolder.TRASH.equals(type) && folder && unselected);
|
|
|
|
|
|
|
|
menu.findItem(R.id.menu_empty_spam).setVisible(EntityFolder.JUNK.equals(type) && folder && unselected);
|
|
|
|
|
|
|
|
|
|
|
|
if ("time".equals(sort))
|
|
|
|
if ("time".equals(sort))
|
|
|
|
menu.findItem(R.id.menu_sort_on_time).setChecked(true);
|
|
|
|
menu.findItem(R.id.menu_sort_on_time).setChecked(true);
|
|
|
|