commit | 972e839ff930082bdb55fd374c9aedd80d772610 | [log] [tgz] |
---|---|---|
author | Evan Rosky <erosky@google.com> | Wed May 12 03:33:11 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed May 12 03:33:11 2021 +0000 |
tree | 2ec8b0485579ba38aed3b292a321f20ccb90de27 | |
parent | a5ae0dd6663efe8dce11f0aad1c26c10f7e16e55 [diff] | |
parent | 937371bfb3eb2fe8f5b9f6dd3bfd5ad57c98d50f [diff] |
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: Ie2764e0d10bb1bc5e2583ce0ab2332163a713fa2
diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 027dd1c..edc7a3c 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java
@@ -534,13 +534,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)); } }