Add a charging constraint to the backup job.

This commit is contained in:
Greyson Parrelli
2020-09-15 13:21:14 -04:00
parent 7108fc81a9
commit 19cc43c442
7 changed files with 128 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
@Override
protected long onAlarm(Context context, long scheduledTime) {
if (TextSecurePreferences.isBackupEnabled(context)) {
ApplicationDependencies.getJobManager().add(new LocalBackupJob());
ApplicationDependencies.getJobManager().add(new LocalBackupJob(false));
}
return setNextBackupTimeToIntervalFromNow(context);