mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix scheduled backup jobs cancelling itself.
This commit is contained in:
committed by
Greyson Parrelli
parent
8cbad2c3a6
commit
e635c3030e
@@ -56,9 +56,9 @@ public final class LocalBackupJob extends BaseJob {
|
||||
.setQueue(QUEUE)
|
||||
.setMaxInstancesForFactory(1)
|
||||
.setMaxAttempts(3);
|
||||
if (force || Build.VERSION.SDK_INT >= 31) {
|
||||
if (force) {
|
||||
jobManager.cancelAllInQueue(QUEUE);
|
||||
} else {
|
||||
} else if (Build.VERSION.SDK_INT < 31) {
|
||||
parameters.addConstraint(ChargingConstraint.KEY);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user