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:
committed by
Android Git Automerger
commit
eceace47c5
@ -154,6 +154,11 @@ class FastScroller {
|
||||
int textColorNormal = textColor.getDefaultColor();
|
||||
mPaint.setColor(textColorNormal);
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user