Merge "Fix FastScroller overlay position bug after setFastScrollEnabled(false)-->setFastScrollEnabled(true) the overlay shows up at the top-left instead of center"
This commit is contained in:
@@ -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