mirror of https://github.com/M66B/FairEmail.git
Make sure manually executed rules are being followed up
This commit is contained in:
parent
453f61537c
commit
d7fc63aa77
|
@ -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),
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue