Remove chip setting migration

pull/1291/head
Alex Baker 3 years ago
parent e9658c9205
commit fdd326f16e

@ -59,11 +59,6 @@ class Upgrader @Inject constructor(
run(from, V8_10) { migrateWidgets() }
run(from, V9_3) { applyCaldavOrder() }
run(from, V9_6) {
val chips = preferences.getBoolean("show_list_indicators", true)
preferences.showSubtaskChip = chips
preferences.showPlaceChip = chips
preferences.showListChip = chips
preferences.showTagChip = chips
preferences.setBoolean(R.string.p_astrid_sort_enabled, true)
taskMover.migrateLocalTasks()
}

@ -453,21 +453,17 @@ class Preferences @JvmOverloads constructor(
val themeBase: Int
get() = getInt(R.string.p_theme, ThemeBase.DEFAULT_BASE_THEME)
var showSubtaskChip: Boolean
val showSubtaskChip: Boolean
get() = getBoolean(R.string.p_subtask_chips, true)
set(value) = setBoolean(R.string.p_subtask_chips, value)
var showPlaceChip: Boolean
val showPlaceChip: Boolean
get() = getBoolean(R.string.p_place_chips, true)
set(value) = setBoolean(R.string.p_place_chips, value)
var showListChip: Boolean
val showListChip: Boolean
get() = getBoolean(R.string.p_list_chips, true)
set(value) = setBoolean(R.string.p_list_chips, value)
var showTagChip: Boolean
val showTagChip: Boolean
get() = getBoolean(R.string.p_tag_chips, true)
set(value) = setBoolean(R.string.p_tag_chips, value)
fun alreadyNotified(account: String?, scope: String?): Boolean =
getBoolean(context.getString(R.string.p_notified_oauth_error, account, scope), false)

Loading…
Cancel
Save