Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.0.22' propVersionName = '3.0.23' kotlin_version = '1.2.0' support_libs = '27.0.2' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ fun Context.isKitkatPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT fun Context.isLollipopPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP fun Context.isMarshmallowPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M fun Context.isNougatPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N fun Context.isOreoPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O fun Context.updateTextColors(viewGroup: ViewGroup, tmpTextColor: Int = 0, tmpAccentColor: Int = 0) { val textColor = if (tmpTextColor == 0) baseConfig.textColor else tmpTextColor Loading Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.0.22' propVersionName = '3.0.23' kotlin_version = '1.2.0' support_libs = '27.0.2' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ fun Context.isKitkatPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT fun Context.isLollipopPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP fun Context.isMarshmallowPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M fun Context.isNougatPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N fun Context.isOreoPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O fun Context.updateTextColors(viewGroup: ViewGroup, tmpTextColor: Int = 0, tmpAccentColor: Int = 0) { val textColor = if (tmpTextColor == 0) baseConfig.textColor else tmpTextColor Loading