mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user