Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/cert4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicki Hirner <hirner@bitfire.at>2019-11-07 20:09:41 +0300
committerRicki Hirner <hirner@bitfire.at>2019-11-07 20:09:41 +0300
commitedae5c07ac447f887ff0b0618332ad8dd6779ac1 (patch)
treebea59fed0dc03cb9d70eb2f815fad02e2521a183
parent1ed2d149d506975f26684c67b49256b0e5df5c8e (diff)
Update dependencies, lint
-rw-r--r--build.gradle4
-rw-r--r--src/main/java/at/bitfire/cert4android/CustomCertManager.kt5
2 files changed, 5 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index ac0c8e6..f8bc4a4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -12,7 +12,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
+ classpath 'com.android.tools.build:gradle:3.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}"
}
@@ -29,7 +29,7 @@ apply plugin: 'org.jetbrains.dokka-android'
android {
compileSdkVersion 29
- buildToolsVersion '29.0.1'
+ buildToolsVersion '29.0.2'
defaultConfig {
minSdkVersion 14
diff --git a/src/main/java/at/bitfire/cert4android/CustomCertManager.kt b/src/main/java/at/bitfire/cert4android/CustomCertManager.kt
index dcbc69e..4e5df4a 100644
--- a/src/main/java/at/bitfire/cert4android/CustomCertManager.kt
+++ b/src/main/java/at/bitfire/cert4android/CustomCertManager.kt
@@ -91,9 +91,10 @@ class CustomCertManager @JvmOverloads constructor(
}
}
- if (Looper.myLooper() == Looper.getMainLooper())
+ check(Looper.myLooper() != Looper.getMainLooper()) {
// service is actually created after bindService() by code running in looper, so this would block
- throw IllegalStateException("must not be run on main thread")
+ "must not be run on main thread"
+ }
Constants.log.fine("Binding to service")
if (context.bindService(Intent(context, CustomCertService::class.java), newServiceConn, Context.BIND_AUTO_CREATE)) {