Loading quickstep/src/com/android/quickstep/views/RecentsView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -2241,8 +2242,14 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T for (int i = 0; i < getTaskViewCount(); i++) { requireTaskViewAt(i).setOrientationState(mOrientationState); } boolean shouldRotateMenuForFakeRotation = !mOrientationState.isRecentsActivityRotationAllowed(); if (!shouldRotateMenuForFakeRotation) { return; } TaskMenuView tv = (TaskMenuView) getTopOpenViewWithType(mActivity, TYPE_TASK_MENU); if (tv != null) { // Rotation is supported on phone (details at b/254198019#comment4) tv.onRotationChanged(); } } Loading Loading
quickstep/src/com/android/quickstep/views/RecentsView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -2241,8 +2242,14 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T for (int i = 0; i < getTaskViewCount(); i++) { requireTaskViewAt(i).setOrientationState(mOrientationState); } boolean shouldRotateMenuForFakeRotation = !mOrientationState.isRecentsActivityRotationAllowed(); if (!shouldRotateMenuForFakeRotation) { return; } TaskMenuView tv = (TaskMenuView) getTopOpenViewWithType(mActivity, TYPE_TASK_MENU); if (tv != null) { // Rotation is supported on phone (details at b/254198019#comment4) tv.onRotationChanged(); } } Loading