Merge "Fix text selection drawing on SW"
This commit is contained in:
@ -4441,6 +4441,7 @@ public class WebView extends AbsoluteLayout
|
||||
mHeldMotionless = MOTIONLESS_PENDING;
|
||||
}
|
||||
}
|
||||
int saveCount = canvas.save();
|
||||
if (animateZoom) {
|
||||
mZoomManager.animateZoom(canvas);
|
||||
} else if (!canvas.isHardwareAccelerated()) {
|
||||
@ -4491,10 +4492,6 @@ public class WebView extends AbsoluteLayout
|
||||
nativeUseHardwareAccelSkia(mHardwareAccelSkia);
|
||||
}
|
||||
|
||||
if (mSelectingText && USE_JAVA_TEXT_SELECTION) {
|
||||
drawTextSelectionHandles(canvas);
|
||||
}
|
||||
|
||||
} else {
|
||||
DrawFilter df = null;
|
||||
if (mZoomManager.isZoomAnimating() || UIAnimationsRunning) {
|
||||
@ -4512,6 +4509,11 @@ public class WebView extends AbsoluteLayout
|
||||
}
|
||||
}
|
||||
|
||||
canvas.restoreToCount(saveCount);
|
||||
if (mSelectingText && USE_JAVA_TEXT_SELECTION) {
|
||||
drawTextSelectionHandles(canvas);
|
||||
}
|
||||
|
||||
if (extras == DRAW_EXTRAS_CURSOR_RING) {
|
||||
if (mTouchMode == TOUCH_SHORTPRESS_START_MODE) {
|
||||
mTouchMode = TOUCH_SHORTPRESS_MODE;
|
||||
|
Reference in New Issue
Block a user