Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.13.15' propVersionName = '3.13.16' kotlin_version = '1.2.21' support_libs = '27.0.2' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt +4 −0 Original line number Diff line number Diff line Loading @@ -171,4 +171,8 @@ open class BaseConfig(val context: Context) { var scrollHorizontally: Boolean get() = prefs.getBoolean(SCROLL_HORIZONTALLY, false) set(scrollHorizontally) = prefs.edit().putBoolean(SCROLL_HORIZONTALLY, scrollHorizontally).apply() var preventPhoneFromSleeping: Boolean get() = prefs.getBoolean(PREVENT_PHONE_FROM_SLEEPING, true) set(preventPhoneFromSleeping) = prefs.edit().putBoolean(PREVENT_PHONE_FROM_SLEEPING, preventPhoneFromSleeping).apply() } commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ const val HAD_THANK_YOU_INSTALLED = "had_thank_you_installed" const val SKIP_DELETE_CONFIRMATION = "skip_delete_confirmation" const val ENABLE_PULL_TO_REFRESH = "enable_pull_to_refresh" const val SCROLL_HORIZONTALLY = "scroll_horizontally" const val PREVENT_PHONE_FROM_SLEEPING = "prevent_phone_from_sleeping" // licenses const val LICENSE_KOTLIN = 1 Loading Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.13.15' propVersionName = '3.13.16' kotlin_version = '1.2.21' support_libs = '27.0.2' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt +4 −0 Original line number Diff line number Diff line Loading @@ -171,4 +171,8 @@ open class BaseConfig(val context: Context) { var scrollHorizontally: Boolean get() = prefs.getBoolean(SCROLL_HORIZONTALLY, false) set(scrollHorizontally) = prefs.edit().putBoolean(SCROLL_HORIZONTALLY, scrollHorizontally).apply() var preventPhoneFromSleeping: Boolean get() = prefs.getBoolean(PREVENT_PHONE_FROM_SLEEPING, true) set(preventPhoneFromSleeping) = prefs.edit().putBoolean(PREVENT_PHONE_FROM_SLEEPING, preventPhoneFromSleeping).apply() }
commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ const val HAD_THANK_YOU_INSTALLED = "had_thank_you_installed" const val SKIP_DELETE_CONFIRMATION = "skip_delete_confirmation" const val ENABLE_PULL_TO_REFRESH = "enable_pull_to_refresh" const val SCROLL_HORIZONTALLY = "scroll_horizontally" const val PREVENT_PHONE_FROM_SLEEPING = "prevent_phone_from_sleeping" // licenses const val LICENSE_KOTLIN = 1 Loading