Skip to content

Commit 1d183cb

Browse files
committed
Fix Android init ordering
1 parent 6fcabb1 commit 1d183cb

File tree

1 file changed

+2
-1
lines changed
  • okhttp/src/main/kotlin/okhttp3/internal/platform

1 file changed

+2
-1
lines changed

okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ open class Platform {
186186

187187
// This explicit check avoids activating in Android Studio with Android specific classes
188188
// available when running plugins inside the IDE.
189-
val isAndroid = "Dalvik" == System.getProperty("java.vm.name")
189+
val isAndroid: Boolean
190+
get() = "Dalvik" == System.getProperty("java.vm.name")
190191

191192
private val isConscryptPreferred: Boolean
192193
get() {

0 commit comments

Comments
 (0)