Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4bc2e42 authored by tibbi's avatar tibbi
Browse files

add a config field for skipping delete confirmation

parent 60f5191c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.12.23'
        propVersionName = '3.12.24'
        kotlin_version = '1.2.21'
        support_libs = '27.0.2'
    }
+4 −0
Original line number Diff line number Diff line
@@ -159,4 +159,8 @@ open class BaseConfig(val context: Context) {
    var hadThankYouInstalled: Boolean
        get() = prefs.getBoolean(HAD_THANK_YOU_INSTALLED, false)
        set(hadThankYouInstalled) = prefs.edit().putBoolean(HAD_THANK_YOU_INSTALLED, hadThankYouInstalled).apply()

    var skipDeleteConfirmation: Boolean
        get() = prefs.getBoolean(SKIP_DELETE_CONFIRMATION, false)
        set(skipDeleteConfirmation) = prefs.edit().putBoolean(SKIP_DELETE_CONFIRMATION, skipDeleteConfirmation).apply()
}
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ const val LAST_CONFLICT_RESOLUTION = "last_conflict_resolution"
const val LAST_CONFLICT_APPLY_TO_ALL = "last_conflict_apply_to_all"
const val AVOID_WHATS_NEW = "avoid_whats_new"
const val HAD_THANK_YOU_INSTALLED = "had_thank_you_installed"
const val SKIP_DELETE_CONFIRMATION = "skip_delete_confirmation"

// licenses
const val LICENSE_KOTLIN = 1