File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/src/org/futo/inputmethod/updates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ suspend fun retrieveSavedLastUpdateCheckResult(context: Context): UpdateResult?
103
103
104
104
const val JOB_ID : Int = 15782788
105
105
fun scheduleUpdateCheckingJob (context : Context ) {
106
- if (! BuildConfig .UPDATE_CHECKING ) return
106
+ if (! BuildConfig .UPDATE_CHECKING_NETWORK ) return
107
107
108
108
val jobScheduler = context.getSystemService(Context .JOB_SCHEDULER_SERVICE ) as JobScheduler
109
109
@@ -114,7 +114,7 @@ fun scheduleUpdateCheckingJob(context: Context) {
114
114
115
115
var jobInfoBuilder = JobInfo .Builder (JOB_ID , ComponentName (context, UpdateCheckingService ::class .java))
116
116
.setPeriodic(1000L * 60L * 60L * 12L ) // every 12 hours
117
- .setRequiredNetworkType(JobInfo .NETWORK_TYPE_UNMETERED ) // on unmetered Wi-Fi
117
+ // .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) // on unmetered Wi-Fi
118
118
.setPersisted(true ) // persist after reboots
119
119
120
120
// Update checking has minimum priority
You can’t perform that action at this time.
0 commit comments