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

Commit 0ccef4d0 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Apply implicit parent dependency when adding to PreferenceGroup" into klp-dev

parents ca5d413e 651b4249
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -210,10 +210,7 @@ public abstract class PreferenceGroup extends Preference implements GenericInfla
     * @return Whether to allow adding the preference (true), or not (false).
     */
    protected boolean onPrepareAddPreference(Preference preference) {
        if (!super.isEnabled()) {
            preference.setEnabled(false);
        }
        
        preference.onParentChanged(this, shouldDisableDependents());
        return true;
    }