Merge "Apply implicit parent dependency when adding to PreferenceGroup" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0ccef4d003
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user