Addes swipe snooze action

This commit is contained in:
M66B
2019-10-06 21:01:01 +02:00
parent 619c54cc15
commit 7221131d78
9 changed files with 109 additions and 60 deletions

View File

@@ -290,9 +290,9 @@ public class ServiceUI extends IntentService {
private void onSnooze(long id) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
int notify_snooze_duration = prefs.getInt("notify_snooze_duration", 60);
int notify_snooze_duration = prefs.getInt("default_snooze", 1);
long wakeup = new Date().getTime() + notify_snooze_duration * 60 * 1000L;
long wakeup = new Date().getTime() + notify_snooze_duration * 3600 * 1000L;
DB db = DB.getInstance(this);
try {