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

Commit 4dbd14db authored by Jacky Wang's avatar Jacky Wang
Browse files

[SettingPref] Do not remove preference if not isApplicable

Keep the preference to compare hierarchy for Catalyst migration.

Bug: 389131873
Flag: EXEMPT refactor
Test: manual
Change-Id: I74171b109594677e691dcf5236d979395f455398
parent ddb87794
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) {