private void obtainDialogHeight ( @ NonNull final TypedArray typedArray ) { int height = 0 ; try { height = typedArray . getDimensionPixelSize ( R . styleable . DialogPreference_dialogHeight , height ) ; } catch ( Resources . NotFoundException | UnsupportedOperationException e ) { height = typedArray . getInteger ( 0 , height ) ; } if ( height != 0 ) { setDialogHeight ( height ) ; } }
Obtains the height of the preference s dialog from a specific typed array .