Revert "Run start service on foreground"

This reverts commit f7a85deeec.
This commit is contained in:
M66B
2021-03-27 15:50:39 +01:00
parent a5e0d8f086
commit e35cbd0f37
18 changed files with 114 additions and 263 deletions

View File

@@ -631,23 +631,16 @@ public class FragmentFolder extends FragmentBase {
db.endTransaction();
}
args.putBoolean("reload", reload);
if (reload)
ServiceSynchronize.reload(context, aid, false, "save folder");
else
ServiceSynchronize.eval(context, "save folder");
return false;
}
@Override
protected void onExecuted(Bundle args, Boolean dirty) {
Context context = getContext();
if (context != null) {
long aid = args.getLong("account");
boolean reload = args.getBoolean("reload");
if (reload)
ServiceSynchronize.reload(context, aid, false, "save folder");
else
ServiceSynchronize.eval(context, "save folder");
}
if (dirty) {
Bundle aargs = new Bundle();
aargs.putString("question", getString(R.string.title_ask_save));