diff --git a/FAQ.md b/FAQ.md index 86c66321d7..24af92b007 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1685,6 +1685,7 @@ You can select one of these actions to apply to matching messages: * Suppress notification * Snooze * Add star +* Set importance (local priority) * Add keyword * Move * Copy (Gmail: label) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index cb43db4cf8..fae0826dd2 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -256,6 +256,8 @@ public class Log { final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); + String no_internet = context.getString(R.string.title_no_internet); + config.beforeSend(new BeforeSend() { @Override public boolean run(@NonNull Report report) { @@ -285,9 +287,9 @@ public class Log { return false; if (ex instanceof IllegalStateException && - ("Not connected".equals(ex.getMessage()) || - "This operation is not allowed on a closed folder".equals(ex.getMessage()) || - context.getString(R.string.title_no_internet).equals(ex.getMessage()))) + (no_internet.equals(ex.getMessage()) || + "Not connected".equals(ex.getMessage()) || + "This operation is not allowed on a closed folder".equals(ex.getMessage()))) return false; if (ex instanceof FileNotFoundException &&