Small behavior improvement

pull/200/head
M66B 3 years ago
parent 9b1ce4bce2
commit 7f86abda81

@ -399,7 +399,7 @@ public class FragmentAccounts extends FragmentBase {
if (outbox)
ServiceSend.start(context);
if (!now)
if (!now && !args.getBoolean("force"))
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
return null;

@ -421,7 +421,7 @@ public class FragmentFolders extends FragmentBase {
if (outbox)
ServiceSend.start(context);
if (!now)
if (!now && !args.getBoolean("force"))
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
return null;

@ -1607,7 +1607,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
else
ServiceSynchronize.eval(context, "refresh");
if (!now)
if (!now && !args.getBoolean("force"))
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
return null;

Loading…
Cancel
Save