am 81925e66: Merge "Fix FastScroller overlay position bug after setFastScrollEnabled(false)-->setFastScrollEnabled(true) the overlay shows up at the top-left instead of center"

Merge commit '81925e665c1e25d04cbc10e7333e793416bdc98f' into gingerbread-plus-aosp

* commit '81925e665c1e25d04cbc10e7333e793416bdc98f':
  Fix FastScroller overlay position bug
This commit is contained in:
Jean-Baptiste Queru
2010-10-20 16:33:51 -07:00
committed by Android Git Automerger

View File

@ -154,6 +154,11 @@ class FastScroller {
int textColorNormal = textColor.getDefaultColor(); int textColorNormal = textColor.getDefaultColor();
mPaint.setColor(textColorNormal); mPaint.setColor(textColorNormal);
mPaint.setStyle(Paint.Style.FILL_AND_STROKE); mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
// to show mOverlayDrawable properly
if (mList.getWidth() > 0 && mList.getHeight() > 0) {
onSizeChanged(mList.getWidth(), mList.getHeight(), 0, 0);
}
mState = STATE_NONE; mState = STATE_NONE;
} }