kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix backup scheduling looping bug.
rodzic
89b0167fd2
commit
6c78a405bb
|
@ -53,7 +53,7 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
|
||||||
int hour = SignalStore.settings().getBackupHour();
|
int hour = SignalStore.settings().getBackupHour();
|
||||||
int minute = SignalStore.settings().getBackupMinute();
|
int minute = SignalStore.settings().getBackupMinute();
|
||||||
LocalDateTime next = now.withHour(hour).withMinute(minute).withSecond(0);
|
LocalDateTime next = now.withHour(hour).withMinute(minute).withSecond(0);
|
||||||
if (now.getHour() >= 2) {
|
if (now.isAfter(next)) {
|
||||||
next = next.plusDays(1);
|
next = next.plusDays(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue