Revert "Fix a bug in TouchInteractionService for fixed-display input rotation"
This reverts commit 04fb7ee44c54a5f9b8de42dbde33fb2e4a532f49.
Reason for revert: This wasn't the right fix.
Bug: 179274888
Change-Id: Ic9aaf2b43252533837206cc82ac5fd1f2d7297f8
diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java
index 338a6ef..4fc9770 100644
--- a/quickstep/src/com/android/quickstep/TouchInteractionService.java
+++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java
@@ -496,13 +496,6 @@
Point sz = new Point();
display.getRealSize(sz);
if (rotation != Surface.ROTATION_0) {
- if ((rotation % 2) != 0) {
- // via display-manager, the display size is unrotated, so "rotate" its size
- // to match the rotation we are transforming the event into.
- final int tmpX = sz.x;
- sz.x = sz.y;
- sz.y = tmpX;
- }
event.transform(InputChannelCompat.createRotationMatrix(rotation, sz.x, sz.y));
}
}