Swap high/low importance

pull/178/head
M66B 5 years ago
parent 88a815334f
commit c9401f61c7

@ -2381,12 +2381,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
SubMenu importance = popupMenu.getMenu()
.addSubMenu(Menu.NONE, Menu.NONE, order++, R.string.title_set_importance);
importance.add(Menu.NONE, R.string.title_importance_low, 1, R.string.title_importance_low)
.setEnabled(!EntityMessage.PRIORITIY_LOW.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_high, 1, R.string.title_importance_high)
.setEnabled(!EntityMessage.PRIORITIY_HIGH.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_normal, 2, R.string.title_importance_normal)
.setEnabled(!EntityMessage.PRIORITIY_NORMAL.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_high, 3, R.string.title_importance_high)
.setEnabled(!EntityMessage.PRIORITIY_HIGH.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_low, 3, R.string.title_importance_low)
.setEnabled(!EntityMessage.PRIORITIY_LOW.equals(result.importance));
if (result.hasArchive && !result.isArchive) // has archive and not is archive/drafts
popupMenu.getMenu().add(Menu.NONE, R.string.title_archive, order++, R.string.title_archive);

@ -21,14 +21,14 @@
android:title="@string/title_set_importance">
<menu>
<item
android:id="@+id/menu_set_importance_low"
android:title="@string/title_importance_low" />
android:id="@+id/menu_set_importance_high"
android:title="@string/title_importance_high" />
<item
android:id="@+id/menu_set_importance_normal"
android:title="@string/title_importance_normal" />
<item
android:id="@+id/menu_set_importance_high"
android:title="@string/title_importance_high" />
android:id="@+id/menu_set_importance_low"
android:title="@string/title_importance_low" />
</menu>
</item>

Loading…
Cancel
Save