mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
parent
0a4d1569fb
commit
92ea7549d4
@ -26,6 +26,7 @@ import org.whispersystems.jobqueue.requirements.NetworkRequirement;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.Request;
|
||||
@ -39,7 +40,7 @@ public class UpdateApkJob extends ContextJob {
|
||||
super(context, JobParameters.newBuilder()
|
||||
.withGroupId(UpdateApkJob.class.getSimpleName())
|
||||
.withRequirement(new NetworkRequirement(context))
|
||||
.withWakeLock(true)
|
||||
.withWakeLock(true, 30, TimeUnit.SECONDS)
|
||||
.withRetryCount(2)
|
||||
.create());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user