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