Start services in task

This commit is contained in:
M66B
2021-03-27 16:03:58 +01:00
parent e35cbd0f37
commit 8778df07db
6 changed files with 24 additions and 18 deletions

View File

@@ -1447,14 +1447,14 @@ public class FragmentRule extends FragmentBase {
db.endTransaction();
}
if (applied > 0)
ServiceSynchronize.eval(context, "rules/manual");
return applied;
}
@Override
protected void onExecuted(Bundle args, Integer applied) {
if (applied > 0)
ServiceSynchronize.eval(getContext(), "rules/manual");
dismiss();
ToastEx.makeText(getContext(), getString(R.string.title_rule_applied, applied), Toast.LENGTH_LONG).show();
}