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

Commit 47361ddd authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 0ccef4d0: Merge "Apply implicit parent dependency when adding to PreferenceGroup" into klp-dev

* commit '0ccef4d0':
  Apply implicit parent dependency when adding to PreferenceGroup
parents b3d69bf9 0ccef4d0
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;
    }