From 21d8230b9095c435f9baf1509993216da710c60c Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Thu, 20 Oct 2022 16:58:11 -0700 Subject: [PATCH] Prevent rotating TaskMenuViewWithArrow for large screen * Only attempt to rotate TaskMenuView on fake rotation Fixes: 254198019 Test: Rotation on large screen w/ TaskMenu open doesn't crash Change-Id: If8ae8c018e9cc8cb80a2ec3313f5e8d0fda2e148 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index ce96b7168e..b28e048bb9 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -122,6 +122,7 @@ import androidx.annotation.Nullable; import androidx.annotation.UiThread; import androidx.core.graphics.ColorUtils; +import com.android.launcher3.AbstractFloatingView; import com.android.launcher3.BaseActivity; import com.android.launcher3.BaseActivity.MultiWindowModeChangedListener; import com.android.launcher3.DeviceProfile; @@ -2241,8 +2242,14 @@ public abstract class RecentsView