diff --git a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java index 64bbbb0d..36590db1 100644 --- a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.java @@ -29,8 +29,8 @@ public class SettingsFragment extends PreferenceFragmentCompat implements MainAc } TwoStatePreference createTwoStatePreferenceCompat(Context context) { - //The switch didn't work on Android 6, not sure about 7 - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + //SwitchPreference doesn't work on Android 6 + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { return new SwitchPreference(context); } else { return new CheckBoxPreference(context);