From 2ad16ae6c589832333ba5d85d3cd86ed7a679418 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 14 Feb 2021 20:45:11 +0100 Subject: [PATCH] Snooze is a pro feature --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index c1a644532d..0669d022b7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2067,7 +2067,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. else if (EntityMessage.SWIPE_ACTION_FLAG.equals(action)) onActionFlagSelection(!message.ui_flagged, null, message.id); else if (EntityMessage.SWIPE_ACTION_SNOOZE.equals(action)) - onActionSnooze(message); + if (ActivityBilling.isPro(getContext())) + onActionSnooze(message); + else { + adapter.notifyItemChanged(pos); + startActivity(new Intent(getContext(), ActivityBilling.class)); + } else if (EntityMessage.SWIPE_ACTION_HIDE.equals(action)) onActionHide(message); else if (EntityMessage.SWIPE_ACTION_MOVE.equals(action)) {