private void obtainDialogScrollableArea ( @ NonNull final TypedArray typedArray ) { int topIndex = typedArray . getInt ( R . styleable . DialogPreference_dialogScrollableAreaTop , - 1 ) ; ScrollableArea . Area top = null ; ScrollableArea . Area bottom = null ; if ( topIndex != - 1 ) { top = ScrollableArea . Area . fromIndex ( topIndex ) ; int bottomIndex = typedArray . getInt ( R . styleable . DialogPreference_dialogScrollableAreaBottom , - 1 ) ; if ( bottomIndex != - 1 ) { bottom = ScrollableArea . Area . fromIndex ( bottomIndex ) ; } } setDialogScrollableArea ( top , bottom != null ? bottom : top ) ; }
Obtains the scrollable area of the preference s dialog from a specific typed array .