From 38cf9c73e129d20d776c2731305e542c85e673c4 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 22 Oct 2019 09:14:01 +0200 Subject: [PATCH] Fixed notification options dependency --- .../java/eu/faircode/email/FragmentOptionsNotifications.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java index 9949179441..fbceb9ad72 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java @@ -166,7 +166,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("notify_preview", checked).apply(); - swWearablePreview.setEnabled(checked); + enableOptions(); } }); @@ -354,7 +354,6 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared swNotifySummary.setChecked(prefs.getBoolean("notify_summary", false)); swNotifyPreview.setChecked(prefs.getBoolean("notify_preview", true)); swWearablePreview.setChecked(prefs.getBoolean("wearable_preview", true)); - swWearablePreview.setEnabled(swNotifyPreview.isChecked()); cbNotifyActionTrash.setChecked(prefs.getBoolean("notify_trash", true) || !pro); cbNotifyActionJunk.setChecked(prefs.getBoolean("notify_junk", false) && pro); @@ -379,6 +378,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared boolean checked = swNotifySummary.isChecked(); swNotifyPreview.setEnabled(!checked); + swWearablePreview.setEnabled(!checked && swNotifyPreview.isChecked()); cbNotifyActionTrash.setEnabled(pro && !checked); cbNotifyActionJunk.setEnabled(pro && !checked); cbNotifyActionArchive.setEnabled(pro && !checked);