Run start service on foreground

This commit is contained in:
M66B
2021-03-25 09:36:45 +01:00
parent a2f78423df
commit f7a85deeec
18 changed files with 263 additions and 114 deletions

View File

@@ -631,16 +631,23 @@ public class FragmentFolder extends FragmentBase {
db.endTransaction();
}
if (reload)
ServiceSynchronize.reload(context, aid, false, "save folder");
else
ServiceSynchronize.eval(context, "save folder");
args.putBoolean("reload", reload);
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));