Fix tapping on screenshot preview
Call the performClick method of the screenshot preview when the preview is tapped (i.e., when the drag distance is small). Bug: 175794913 Fix: 175794913 Test: manual Change-Id: Ia1938b666849cb985dedf38e1611a99cfe00eef1
This commit is contained in:
@@ -759,7 +759,7 @@ public class ScreenshotView extends FrameLayout implements
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
public boolean onTouch(View view, MotionEvent event) {
|
||||
boolean gestureResult = mGestureDetector.onTouchEvent(event);
|
||||
mCallbacks.onUserInteraction();
|
||||
if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
|
||||
@@ -789,6 +789,10 @@ public class ScreenshotView extends FrameLayout implements
|
||||
createSwipeReturnAnimation().start();
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
if (view == mScreenshotPreview) {
|
||||
mScreenshotPreview.performClick();
|
||||
}
|
||||
}
|
||||
}
|
||||
return gestureResult;
|
||||
|
||||
Reference in New Issue
Block a user