summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-05-02 12:11:06 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-05-02 12:11:40 -0700
commit1f2bb9d0b7d7bd4878307f0ec635df2fe96fed7b (patch)
tree643c09dba1d76d565a88cf08640cdaf616e9387a /quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
parentda9cf0f66b3595518edde8e53b40b0f0c67226c4 (diff)
downloadandroid_packages_apps_Trebuchet-1f2bb9d0b7d7bd4878307f0ec635df2fe96fed7b.tar.gz
android_packages_apps_Trebuchet-1f2bb9d0b7d7bd4878307f0ec635df2fe96fed7b.tar.bz2
android_packages_apps_Trebuchet-1f2bb9d0b7d7bd4878307f0ec635df2fe96fed7b.zip
Updating the quickswitch direction in SEASCAPE
Change-Id: I9b4ff52971a70e2eae0567c2430916b0deaebd32
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
index 2fdfda1c6..b5f90a555 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
@@ -83,6 +83,7 @@ import com.android.launcher3.anim.AnimatorPlaybackController;
import com.android.launcher3.anim.PropertyListBuilder;
import com.android.launcher3.anim.SpringObjectAnimator;
import com.android.launcher3.config.FeatureFlags;
+import com.android.launcher3.graphics.RotationMode;
import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction;
import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch;
@@ -1641,10 +1642,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
return mClearAllButton;
}
- public Consumer<MotionEvent> getEventDispatcher(boolean isTransposed) {
- if (isTransposed) {
+ public Consumer<MotionEvent> getEventDispatcher(RotationMode rotationMode) {
+ if (rotationMode.isTransposed) {
Matrix transform = new Matrix();
- transform.setRotate(90);
+ transform.setRotate(-rotationMode.surfaceRotation);
if (getWidth() > 0 && getHeight() > 0) {
float scale = ((float) getWidth()) / getHeight();