mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Correct the notification repeat interval
Switch to 2min from 10sec. Closes #3002
This commit is contained in:
parent
64fc83326f
commit
7724964a36
@ -429,7 +429,7 @@ public class MessageNotifier {
|
|||||||
alarmIntent.putExtra("reminder_count", count);
|
alarmIntent.putExtra("reminder_count", count);
|
||||||
|
|
||||||
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, alarmIntent, PendingIntent.FLAG_CANCEL_CURRENT);
|
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, alarmIntent, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||||
long timeout = TimeUnit.SECONDS.toMillis(10);
|
long timeout = TimeUnit.MINUTES.toMillis(2);
|
||||||
|
|
||||||
alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + timeout, pendingIntent);
|
alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + timeout, pendingIntent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user