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.17' propVersionName = '3.13.18' 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 @@ -175,4 +175,8 @@ open class BaseConfig(val context: Context) { var preventPhoneFromSleeping: Boolean get() = prefs.getBoolean(PREVENT_PHONE_FROM_SLEEPING, true) set(preventPhoneFromSleeping) = prefs.edit().putBoolean(PREVENT_PHONE_FROM_SLEEPING, preventPhoneFromSleeping).apply() var lastUsedViewPagerPage: Int get() = prefs.getInt(LAST_USED_VIEW_PAGER_PAGE, 0) set(lastUsedViewPagerPage) = prefs.edit().putInt(LAST_USED_VIEW_PAGER_PAGE, lastUsedViewPagerPage).apply() } commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ 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" const val LAST_USED_VIEW_PAGER_PAGE = "last_used_view_pager_page" // 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.17' propVersionName = '3.13.18' 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 @@ -175,4 +175,8 @@ open class BaseConfig(val context: Context) { var preventPhoneFromSleeping: Boolean get() = prefs.getBoolean(PREVENT_PHONE_FROM_SLEEPING, true) set(preventPhoneFromSleeping) = prefs.edit().putBoolean(PREVENT_PHONE_FROM_SLEEPING, preventPhoneFromSleeping).apply() var lastUsedViewPagerPage: Int get() = prefs.getInt(LAST_USED_VIEW_PAGER_PAGE, 0) set(lastUsedViewPagerPage) = prefs.edit().putInt(LAST_USED_VIEW_PAGER_PAGE, lastUsedViewPagerPage).apply() }
commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ 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" const val LAST_USED_VIEW_PAGER_PAGE = "last_used_view_pager_page" // licenses const val LICENSE_KOTLIN = 1 Loading