Fix double tap Translucent Letterboxed Activities

Test: Launch a Translucent Activity in Letterbox and check that double
click allows to move it in the right direction.

Fixes: 243644291, 243644291

Change-Id: I2733e3c89b9387010a049073fe60d2f6e2559ceb
This commit is contained in:
Massimo Carli
2022-08-24 15:52:08 +00:00
parent d5d35fb282
commit 1c27f2ec5d

View File

@@ -273,8 +273,8 @@ public class Letterbox {
@Override
public boolean onDoubleTapEvent(MotionEvent e) {
if (e.getAction() == MotionEvent.ACTION_UP) {
mDoubleTapCallbackX.accept((int) e.getX());
mDoubleTapCallbackY.accept((int) e.getY());
mDoubleTapCallbackX.accept((int) e.getRawX());
mDoubleTapCallbackY.accept((int) e.getRawY());
return true;
}
return false;