From c686d64a7b40e249284f2b10ac2ff5d9481f8a6a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 19 Nov 2020 18:20:18 +0100 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/EntityRule.java | 10 +++++----- app/src/main/java/eu/faircode/email/FragmentRule.java | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index c6b16e4254..48f7e77330 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -298,7 +298,7 @@ public class EntityRule { return matched; } - boolean execute(Context context, EntityMessage message) throws JSONException, IOException, AddressException { + boolean execute(Context context, EntityMessage message) throws JSONException { boolean executed = _execute(context, message); if (id != null && executed) { DB db = DB.getInstance(context); @@ -307,7 +307,7 @@ public class EntityRule { return executed; } - private boolean _execute(Context context, EntityMessage message) throws JSONException, IOException, AddressException { + private boolean _execute(Context context, EntityMessage message) throws JSONException { JSONObject jaction = new JSONObject(action); int type = jaction.getInt("type"); Log.i("Executing rule=" + type + ":" + name + " message=" + message.id); @@ -399,7 +399,7 @@ public class EntityRule { return true; } - private boolean onActionCopy(Context context, EntityMessage message, JSONObject jargs) throws JSONException { + private boolean onActionCopy(Context context, EntityMessage message, JSONObject jargs) { long target = jargs.optLong("target", -1); DB db = DB.getInstance(context); @@ -412,7 +412,7 @@ public class EntityRule { return true; } - private boolean onActionAnswer(Context context, EntityMessage message, JSONObject jargs) throws JSONException, IOException, AddressException { + private boolean onActionAnswer(Context context, EntityMessage message, JSONObject jargs) { DB db = DB.getInstance(context); boolean attachments = jargs.optBoolean("attachments"); @@ -583,7 +583,7 @@ public class EntityRule { return true; } - private boolean onActionTts(Context context, EntityMessage message, JSONObject jargs) throws IOException { + private boolean onActionTts(Context context, EntityMessage message, JSONObject jargs) { if (!message.content) { EntityOperation.queue(context, message, EntityOperation.BODY); EntityOperation.queue(context, message, EntityOperation.RULE, this.id); diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index 2462c274fc..c9a88160fb 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -988,8 +988,6 @@ public class FragmentRule extends FragmentBase { } try { - Helper.setViewsEnabled(view, false); - Bundle args = new Bundle(); args.putLong("id", id); args.putLong("folder", folder);