private void obtainDialogMaxWidth ( @ NonNull final TypedArray typedArray ) { try { int maxWidth = typedArray . getDimensionPixelSize ( R . styleable . DialogPreference_dialogMaxWidth , - 1 ) ; if ( maxWidth != - 1 ) { setDialogMaxWidth ( maxWidth ) ; } } catch ( Resources . NotFoundException | UnsupportedOperationException e ) { // No need to handle } }
Obtains the maximum width of the preference s dialog from a specific typed array .