From c177a6a142cfce460432c90cbdb3590780284cac Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Sep 2024 14:43:16 +0200 Subject: [PATCH] Flag snoozed from notification --- app/src/main/java/eu/faircode/email/ServiceUI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceUI.java b/app/src/main/java/eu/faircode/email/ServiceUI.java index dd61b79e68..0770905845 100644 --- a/app/src/main/java/eu/faircode/email/ServiceUI.java +++ b/app/src/main/java/eu/faircode/email/ServiceUI.java @@ -439,6 +439,7 @@ public class ServiceUI extends IntentService { private void onSnooze(long id) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); + boolean flag_snoozed = prefs.getBoolean("flag_snoozed", false); int default_snooze = prefs.getInt("default_snooze", 1); if (default_snooze == 0) default_snooze = 1; @@ -457,6 +458,9 @@ public class ServiceUI extends IntentService { db.message().setMessageUiIgnored(message.id, true); EntityMessage.snooze(this, id, wakeup); + if (flag_snoozed) + EntityOperation.queue(this, message, EntityOperation.FLAG, true); + db.setTransactionSuccessful(); } finally {