private void obtainDisableDependantsState ( @ NonNull final TypedArray typedArray ) { boolean defaultValue = getContext ( ) . getResources ( ) . getBoolean ( R . bool . two_state_preference_default_disable_dependents_state ) ; setDisableDependentsState ( typedArray . getBoolean ( R . styleable . AbstractTwoStatePreference_android_disableDependentsState , defaultValue ) ) ; }
Obtains the state when dependent preferences should be disabled from a specific typed array .