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

Commit ea7fbb0f authored by Jacky Wang's avatar Jacky Wang Committed by Android (Google) Code Review
Browse files

Merge "[SettingPref] Do not remove preference if not isApplicable" into main

parents 3b72edbc 4dbd14db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ public class SettingPref {
        final Context context = settings.getActivity();
        Preference p = settings.getPreferenceScreen().findPreference(mKey);
        if (p != null && !isApplicable(context)) {
            settings.getPreferenceScreen().removePreference(p);
            p.setVisible(false);
            p = null;
        }
        if (p instanceof TwoStatePreference) {