Don't show caption menu for things in TaskView / bubbles

Test: manual - enable desktop windowing
             - get a bubble and expand it, verify there isn't an
               extra handle at the top of the view
Bug: 287090311
Change-Id: I0b382cd6ec529ad2264aec1b633b99817c6a7b18
This commit is contained in:
Mady Mellor
2023-07-10 11:01:11 -07:00
parent dd8315d35b
commit 261451644c

View File

@@ -799,6 +799,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel {
return DesktopModeStatus.isProto2Enabled()
&& taskInfo.getWindowingMode() != WINDOWING_MODE_PINNED
&& taskInfo.getActivityType() == ACTIVITY_TYPE_STANDARD
&& !taskInfo.configuration.windowConfiguration.isAlwaysOnTop()
&& mDisplayController.getDisplayContext(taskInfo.displayId)
.getResources().getConfiguration().smallestScreenWidthDp >= 600;
}