diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index f022155260..3964e87ba7 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -153,8 +153,8 @@ public class EntityOperation { boolean autoread = prefs.getBoolean("autoread", false); boolean autounflag = prefs.getBoolean("autounflag", false); - if (jargs.optBoolean(1)) // rule - autoread = true; + if (jargs.opt(1) != null) // rules + autoread = jargs.getBoolean(1); jargs.put(1, autoread); jargs.put(3, autounflag);