diff --git a/app/src/main/java/eu/faircode/email/FragmentOperations.java b/app/src/main/java/eu/faircode/email/FragmentOperations.java index fdc1dec124..8fc10ab008 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOperations.java +++ b/app/src/main/java/eu/faircode/email/FragmentOperations.java @@ -116,6 +116,9 @@ public class FragmentOperations extends FragmentBase { if (itemId == R.id.menu_help) { onMenuHelp(); return true; + } else if (itemId == R.id.menu_force_reload) { + onMenuForceReload(); + return true; } else if (itemId == R.id.menu_delete) { new FragmentDialogDelete().show(getParentFragmentManager(), "operations:delete"); return true; @@ -127,6 +130,10 @@ public class FragmentOperations extends FragmentBase { Helper.viewFAQ(getContext(), 3); } + private void onMenuForceReload() { + ServiceSynchronize.reload(getContext(), null, true, "operations"); + } + public static class FragmentDialogDelete extends FragmentDialogBase { @NonNull @Override diff --git a/app/src/main/res/menu/menu_operations.xml b/app/src/main/res/menu/menu_operations.xml index 2a031b406f..64f752f2c1 100644 --- a/app/src/main/res/menu/menu_operations.xml +++ b/app/src/main/res/menu/menu_operations.xml @@ -7,6 +7,11 @@ android:title="@string/title_info" app:showAsAction="always" /> + + Select found Mark all read Force sync + Force restart Force send All