public Rect updateFastScrollerBounds(FastScrollRecyclerView recyclerView,int thumbOffsetY){
  mInvalidateRect.set(mBgBounds);
  if (isVisible()) {
    int edgePadding=recyclerView.getScrollBarWidth();
    int bgPadding=(mBackgroundSize - mTextBounds.height()) / 2;
    int bgHeight=mBackgroundSize;
    int bgWidth=Math.max(mBackgroundSize,mTextBounds.width() + (2 * bgPadding));
    if (Utils.isRtl(mRes)) {
      mBgBounds.left=(2 * recyclerView.getScrollBarWidth());
      mBgBounds.right=mBgBounds.left + bgWidth;
    }
 else {
      mBgBounds.right=recyclerView.getWidth() - (2 * recyclerView.getScrollBarWidth());
      mBgBounds.left=mBgBounds.right - bgWidth;
    }
    mBgBounds.top=thumbOffsetY - bgHeight + recyclerView.getScrollBarThumbHeight() / 2;
    mBgBounds.top=Math.max(edgePadding,Math.min(mBgBounds.top,recyclerView.getHeight() - edgePadding - bgHeight));
    mBgBounds.bottom=mBgBounds.top + bgHeight;
  }
 else {
    mBgBounds.setEmpty();
  }
  mInvalidateRect.union(mBgBounds);
  return mInvalidateRect;
}

public Rect updateFastScrollerBounds ( FastScrollRecyclerView recyclerView , int thumbOffsetY ) { mInvalidateRect . set ( mBgBounds ) ; if ( isVisible ( ) ) { int edgePadding = recyclerView . getScrollBarWidth ( ) ; int bgPadding = ( mBackgroundSize - mTextBounds . height ( ) ) / 2 ; int bgHeight = mBackgroundSize ; int bgWidth = Math . max ( mBackgroundSize , mTextBounds . width ( ) + ( 2 * bgPadding ) ) ; if ( Utils . isRtl ( mRes ) ) { mBgBounds . left = ( 2 * recyclerView . getScrollBarWidth ( ) ) ; mBgBounds . right = mBgBounds . left + bgWidth ; } else { mBgBounds . right = recyclerView . getWidth ( ) - ( 2 * recyclerView . getScrollBarWidth ( ) ) ; mBgBounds . left = mBgBounds . right - bgWidth ; } mBgBounds . top = thumbOffsetY - bgHeight + recyclerView . getScrollBarThumbHeight ( ) / 2 ; mBgBounds . top = Math . max ( edgePadding , Math . min ( mBgBounds . top , recyclerView . getHeight ( ) - edgePadding - bgHeight ) ) ; mBgBounds . bottom = mBgBounds . top + bgHeight ; } else { mBgBounds . setEmpty ( ) ; } mInvalidateRect . union ( mBgBounds ) ; return mInvalidateRect ; }
updates the bounds for the fast scroller .
