Make sure manually executed rules are being followed up

This commit is contained in:
M66B 2020-02-21 17:13:45 +01:00
parent 453f61537c
commit d7fc63aa77
2 changed files with 6 additions and 0 deletions

View File

@ -320,6 +320,9 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
@Override
protected void onExecuted(Bundle args, Integer applied) {
if (applied > 0)
ServiceSynchronize.eval(context, "rules/manual");
Snackbar.make(
parentFragment.getView(),
context.getString(R.string.title_rule_applied, applied),

View File

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