Merge "Disable Select mode from Menu in fake landscape" into main

This commit is contained in:
Alex Chau
2024-06-24 14:35:43 +00:00
committed by Android (Google) Code Review
@@ -493,18 +493,8 @@ public interface TaskShortcutFactory {
TaskContainer taskContainer) {
boolean isTablet = container.getDeviceProfile().isTablet;
boolean isGridOnlyOverview = isTablet && Flags.enableGridOnlyOverview();
// Extra conditions if it's not grid-only overview
if (!isGridOnlyOverview) {
RecentsOrientedState orientedState = taskContainer.getTaskView().getOrientedState();
boolean isFakeLandscape = !orientedState.isRecentsActivityRotationAllowed()
&& orientedState.getTouchRotation() != ROTATION_0;
if (!isFakeLandscape) {
return null;
}
// Disallow "Select" when swiping up from landscape due to rotated thumbnail.
if (orientedState.getDisplayRotation() != ROTATION_0) {
return null;
}
return null;
}
SystemShortcut modalStateSystemShortcut =