am eceace47: 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 'eceace47c575d15a3d4b7cd511c20f86850bf301' * commit 'eceace47c575d15a3d4b7cd511c20f86850bf301': Fix FastScroller overlay position bug
This commit is contained in:
committed by
Android Git Automerger
commit
97a0aa987a
@@ -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