From 154793aef04c294aec412b46ac5b868565d1afe0 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 27 Feb 2018 20:40:32 +0100 Subject: [PATCH] update commons to 3.13.16 --- app/build.gradle | 2 +- .../main/kotlin/com/simplemobiletools/draw/helpers/Config.kt | 4 ---- .../kotlin/com/simplemobiletools/draw/helpers/Constants.kt | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ce2259f..187279f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.13.11' + implementation 'com.simplemobiletools:commons:3.13.16' debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt index 4de5632..b8bdc78 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Config.kt @@ -28,8 +28,4 @@ class Config(context: Context) : BaseConfig(context) { var lastSaveFolder: String get() = prefs.getString(LAST_SAVE_FOLDER, "") set(lastSaveFolder) = prefs.edit().putString(LAST_SAVE_FOLDER, lastSaveFolder).apply() - - var preventPhoneFromSleeping: Boolean - get() = prefs.getBoolean(PREVENT_PHONE_FROM_SLEEPING, true) - set(preventPhoneFromSleeping) = prefs.edit().putBoolean(PREVENT_PHONE_FROM_SLEEPING, preventPhoneFromSleeping).apply() } diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt index 8ab86b6..9e848ee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/helpers/Constants.kt @@ -5,7 +5,6 @@ const val CANVAS_BACKGROUND_COLOR = "canvas_background_color" const val SHOW_BRUSH_SIZE = "show_brush_size" const val BRUSH_SIZE = "brush_size" const val LAST_SAVE_FOLDER = "last_save_folder" -const val PREVENT_PHONE_FROM_SLEEPING = "prevent_phone_from_sleeping" const val PNG = "png" const val SVG = "svg"