Make sure nativeMotionUp is called.
If someone sets mLogEvent to false to prevent logging, nativeMotionUp will not be called, so touches to WebView will no longer work. Make sure this does not happen. Change-Id: Ie79ccc68677cea2f686f7c7da734bf719910f583
This commit is contained in:
@@ -6047,7 +6047,7 @@ public class WebView extends AbsoluteLayout
|
||||
}
|
||||
|
||||
private void doMotionUp(int contentX, int contentY) {
|
||||
if (mLogEvent && nativeMotionUp(contentX, contentY, mNavSlop)) {
|
||||
if (nativeMotionUp(contentX, contentY, mNavSlop) && mLogEvent) {
|
||||
EventLog.writeEvent(EventLogTags.BROWSER_SNAP_CENTER);
|
||||
}
|
||||
if (nativeHasCursorNode() && !nativeCursorIsTextInput()) {
|
||||
|
||||
Reference in New Issue
Block a user