Fix split screen app chip position in portrait mode
Adjusted the secondary app chip's split translation in portrait mode to account for the divider size, ensuring correct positioning in split screen. Fix: 314326993 Flag: com.android.launcher3.enable_overview_icon_menu Test: OverviewImageTest Test: OverviewSplitTaskImageTest Change-Id: I39eae8b5f1ac8cff6b466cff5b6fb16f0a6e9647
This commit is contained in:
@@ -726,7 +726,11 @@ class PortraitPagedViewHandler : DefaultPagedViewHandler(), RecentsPagedOrientat
|
||||
val secondarySnapshotWidth = groupedTaskViewWidth - primarySnapshotWidth
|
||||
primaryAppChipView.setSplitTranslationX(-secondarySnapshotWidth.toFloat())
|
||||
} else {
|
||||
secondaryAppChipView.setSplitTranslationX(primarySnapshotWidth.toFloat())
|
||||
val dividerSize =
|
||||
Math.round(groupedTaskViewWidth * splitConfig.dividerPercent)
|
||||
secondaryAppChipView.setSplitTranslationX(
|
||||
primarySnapshotWidth.toFloat() + dividerSize
|
||||
)
|
||||
}
|
||||
} else {
|
||||
primaryAppChipView.setSplitTranslationX(0f)
|
||||
|
||||
Reference in New Issue
Block a user