Merge "Revert "Fix a bug in TouchInteractionService for fixed-display input rotation"" into sc-dev am: 937371bfb3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14490408

Change-Id: I30fdc7859fc776268c3c2e0e2cbad0567fb6a64d
This commit is contained in:
Evan Rosky
2021-05-12 03:34:29 +00:00
committed by Automerger Merge Worker

View File

@@ -534,13 +534,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));
}
}