mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Check with rule name
This commit is contained in:
@@ -44,6 +44,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
|
||||
@Override
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
long folder = getArguments().getLong("folder");
|
||||
String name = getArguments().getString("name");
|
||||
boolean daily = getArguments().getBoolean("daily");
|
||||
String condition = getArguments().getString("condition");
|
||||
String action = getArguments().getString("action");
|
||||
@@ -67,6 +68,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
|
||||
|
||||
final Bundle args = new Bundle();
|
||||
args.putLong("folder", folder);
|
||||
args.putString("name", name);
|
||||
args.putBoolean("daily", daily);
|
||||
args.putString("condition", condition);
|
||||
args.putString("action", action);
|
||||
@@ -92,6 +94,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
|
||||
@Override
|
||||
protected Integer onExecute(Context context, Bundle args) throws Throwable {
|
||||
EntityRule rule = new EntityRule();
|
||||
rule.name = args.getString("name");
|
||||
rule.folder = args.getLong("folder");
|
||||
rule.daily = args.getBoolean("daily");
|
||||
rule.condition = args.getString("condition");
|
||||
|
||||
Reference in New Issue
Block a user