mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Optional force reload
This commit is contained in:
@@ -333,7 +333,7 @@ public class FragmentAccounts extends FragmentBase {
|
||||
}
|
||||
|
||||
private void onMenuForceSync() {
|
||||
ServiceSynchronize.reload(getContext(), null, "force sync");
|
||||
ServiceSynchronize.reload(getContext(), null, true, "force sync");
|
||||
ToastEx.makeText(getContext(), R.string.title_executing, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ public class FragmentAccounts extends FragmentBase {
|
||||
|
||||
if (requestCode == REQUEST_IMPORT_OAUTH)
|
||||
if (Helper.hasPermissions(getContext(), permissions))
|
||||
ServiceSynchronize.reload(getContext(), null, "Permissions regranted");
|
||||
ServiceSynchronize.reload(getContext(), null, false, "Permissions regranted");
|
||||
}
|
||||
|
||||
private void onSwipeRefresh() {
|
||||
@@ -400,7 +400,7 @@ public class FragmentAccounts extends FragmentBase {
|
||||
}
|
||||
|
||||
if (force)
|
||||
ServiceSynchronize.reload(context, null, "forced refresh");
|
||||
ServiceSynchronize.reload(context, null, true, "refresh");
|
||||
else
|
||||
ServiceSynchronize.eval(context, "refresh");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user