Override getDefaultValueType with values based on the preference (#167)

This commit is contained in:
Syer10
2021-08-01 08:43:29 -04:00
committed by GitHub
parent fb862e23e5
commit 5a3621fe39
5 changed files with 20 additions and 1 deletions
@@ -9,7 +9,7 @@ package androidx.preference;
import android.content.Context;
public class SwitchPreferenceCompat extends Preference {
public class SwitchPreferenceCompat extends TwoStatePreference {
// reference: https://android.googlesource.com/platform/frameworks/support/+/996971f962fcd554339a7cb2859cef9ca89dbcb7/preference/preference/src/main/java/androidx/preference/CheckBoxPreference.java
public SwitchPreferenceCompat(Context context) {