Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f78ba723 authored by Evan Rosky's avatar Evan Rosky
Browse files

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

This reverts commit 04fb7ee4.

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

Bug: 179274888
Change-Id: Ic9aaf2b43252533837206cc82ac5fd1f2d7297f8
parent 04fb7ee4
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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));
            }
        }