Fix Chip menu expanding outside the screen

This CL removes isLandscape condition from menu translation that
prevents Comet to translate the menu with split app. The menu needs to
be translated when in split screen mode, regardless of orientation.

Fix: 404549940
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Test: OverviewMenuImageTest
Test: Manual. Instructions in the bug.
Change-Id: I5e4d07a9f1d2e36b847808aec9ae348a7ef78f59
This commit is contained in:
Jordan Silva
2025-03-18 11:18:55 -07:00
parent 337b3ea7b0
commit d2e930bbb7

View File

@@ -428,9 +428,7 @@ constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int = 0) :
var additionalTranslationX = 0f
if (
recentsViewContainer.deviceProfile.isLandscape &&
taskContainer.stagePosition ==
SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT
taskContainer.stagePosition == SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT
) {
// Animate menu and icon when split task would display off the side of the screen.
additionalTranslationX =