mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Allow user-selected backup time.
This commit is contained in:
committed by
Greyson Parrelli
parent
a7d9bd944b
commit
8dd1d3bdeb
@@ -50,7 +50,9 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
|
||||
nextTime = System.currentTimeMillis() + INTERVAL;
|
||||
} else {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
LocalDateTime next = now.withHour(2).withMinute(0).withSecond(0);
|
||||
int hour = SignalStore.settings().getBackupHour();
|
||||
int minute = SignalStore.settings().getBackupMinute();
|
||||
LocalDateTime next = now.withHour(hour).withMinute(minute).withSecond(0);
|
||||
if (now.getHour() >= 2) {
|
||||
next = next.plusDays(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user