v2.5.1
This commit is contained in:
@@ -12,7 +12,7 @@ buildscript {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.0-beta05'
|
||||
classpath 'com.android.tools.build:gradle:3.5.0-rc01'
|
||||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.21.0'
|
||||
classpath 'com.google.gms:google-services:4.3.0'
|
||||
classpath 'io.fabric.tools:gradle:1.30.0'
|
||||
|
||||
@@ -19,8 +19,8 @@ android {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
resConfigs "ru", "zh-rCN"
|
||||
versionCode 207
|
||||
versionName '2.5.0'
|
||||
versionCode 208
|
||||
versionName '2.5.1'
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
|
||||
@@ -15,7 +15,6 @@ import kotlinx.coroutines.launch
|
||||
import org.json.JSONException
|
||||
import org.json.JSONObject
|
||||
import timber.log.Timber
|
||||
import java.io.IOException
|
||||
import java.net.HttpURLConnection
|
||||
import java.net.URL
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ import timber.log.Timber
|
||||
import java.lang.IllegalArgumentException
|
||||
|
||||
@RequiresApi(28)
|
||||
class TetherTimeoutMonitor(private val context: Context, private val handler: Handler, private val onTimeout: () -> Unit):
|
||||
ContentObserver(handler), AutoCloseable {
|
||||
class TetherTimeoutMonitor(private val context: Context, private val handler: Handler,
|
||||
private val onTimeout: () -> Unit) : ContentObserver(handler), AutoCloseable {
|
||||
/**
|
||||
* config_wifi_framework_soft_ap_timeout_delay was introduced in Android 9.
|
||||
*
|
||||
@@ -40,7 +40,8 @@ class TetherTimeoutMonitor(private val context: Context, private val handler: Ha
|
||||
app.resources.getInteger(Resources.getSystem().getIdentifier(
|
||||
"config_wifi_framework_soft_ap_timeout_delay", "integer", "android")).let { delay ->
|
||||
if (delay < MIN_SOFT_AP_TIMEOUT_DELAY_MS) {
|
||||
Timber.w("Overriding timeout delay with minimum limit value: $delay < $MIN_SOFT_AP_TIMEOUT_DELAY_MS")
|
||||
Timber.w(
|
||||
"Overriding timeout delay with minimum limit value: $delay < $MIN_SOFT_AP_TIMEOUT_DELAY_MS")
|
||||
MIN_SOFT_AP_TIMEOUT_DELAY_MS
|
||||
} else delay
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user