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

Commit 589759ff authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 47361ddd: am 0ccef4d0: Merge "Apply implicit parent dependency when adding...

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

* commit '47361ddd':
  Apply implicit parent dependency when adding to PreferenceGroup
parents c1066830 47361ddd
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;
    }