Flag snoozed from notification

master
M66B 1 month ago
parent dcd082e1e2
commit c177a6a142

@ -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 {

Loading…
Cancel
Save