Revert "Fix a bug in TouchInteractionService for fixed-display input rotation"

This reverts commit 04fb7ee44c.

Reason for revert: This wasn't the right fix.

Bug: 179274888
Change-Id: Ic9aaf2b43252533837206cc82ac5fd1f2d7297f8
This commit is contained in:
Evan Rosky
2021-05-10 21:46:43 +00:00
parent 04fb7ee44c
commit f78ba72379
@@ -496,13 +496,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
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));
}
}