mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Update local backup v2 support.
This commit is contained in:
committed by
jeffrey-signal
parent
71b15d269e
commit
d9ecab5240
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user