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

@@ -153,7 +153,7 @@ public class ChatsPreferenceFragment extends ListSummaryPreferenceFragment {
.ifNecessary()
.onAllGranted(() -> {
Log.i(TAG, "Queing backup...");
ApplicationDependencies.getJobManager().add(new LocalBackupJob());
ApplicationDependencies.getJobManager().add(new LocalBackupJob(true));
})
.withPermanentDenialDialog(getString(R.string.ChatsPreferenceFragment_signal_requires_external_storage_permission_in_order_to_create_backups))
.execute();