Update local backup v2 support.

This commit is contained in:
Cody Henthorne
2025-12-18 16:33:30 -05:00
committed by jeffrey-signal
parent 71b15d269e
commit d9ecab5240
55 changed files with 2291 additions and 274 deletions

View File

@@ -34,11 +34,15 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
LocalBackupJob.enqueue(false);
}
if (SignalStore.backup().getNewLocalBackupsEnabled()) {
LocalBackupJob.enqueueArchive(SignalStore.settings().isBackupEnabled());
}
return setNextBackupTimeToIntervalFromNow(context);
}
public static void schedule(Context context) {
if (SignalStore.settings().isBackupEnabled()) {
if (SignalStore.settings().isBackupEnabled() || SignalStore.backup().getNewLocalBackupsEnabled()) {
new LocalBackupListener().onReceive(context, getScheduleIntent());
}
}