Filters> Tabs: use checkbox instead of switch (#3927)
Nowhere else in the preferences are checkboxes used. Also removed the now unused extension function. Fixes #3535
This commit is contained in:
parent
ef8afe02b6
commit
a84d7f56a0
2 changed files with 3 additions and 13 deletions
|
|
@ -6,7 +6,6 @@ import androidx.activity.result.ActivityResultRegistryOwner
|
|||
import androidx.annotation.StringRes
|
||||
import androidx.core.widget.doAfterTextChanged
|
||||
import androidx.lifecycle.LifecycleOwner
|
||||
import androidx.preference.CheckBoxPreference
|
||||
import androidx.preference.EditTextPreference
|
||||
import androidx.preference.ListPreference
|
||||
import androidx.preference.Preference
|
||||
|
|
@ -86,15 +85,6 @@ inline fun PreferenceParent.validatedEditTextPreference(
|
|||
return pref
|
||||
}
|
||||
|
||||
inline fun PreferenceParent.checkBoxPreference(
|
||||
builder: CheckBoxPreference.() -> Unit
|
||||
): CheckBoxPreference {
|
||||
val pref = CheckBoxPreference(context)
|
||||
builder(pref)
|
||||
addPref(pref)
|
||||
return pref
|
||||
}
|
||||
|
||||
inline fun PreferenceParent.preferenceCategory(
|
||||
@StringRes title: Int? = null,
|
||||
builder: PreferenceParent.(PreferenceCategory) -> Unit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue