Added operation/force reload

pull/201/head
M66B 3 years ago
parent 3edf6e27fb
commit 18cd0d9788

@ -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

@ -7,6 +7,11 @@
android:title="@string/title_info"
app:showAsAction="always" />
<item
android:id="@+id/menu_force_reload"
android:title="@string/title_force_reload"
app:showAsAction="never" />
<item
android:id="@+id/menu_delete"
android:title="@string/title_delete"

@ -1308,6 +1308,7 @@
<string name="title_select_found">Select found</string>
<string name="title_mark_all_read">Mark all read</string>
<string name="title_force_sync">Force sync</string>
<string name="title_force_reload">Force restart</string>
<string name="title_force_send">Force send</string>
<string name="title_language_all">All</string>

Loading…
Cancel
Save