Merge "Add Launcher support for left-right splits on portrait foldables" into main

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2023-11-30 05:52:57 +00:00
commit abb4483f6f
21 files changed
+68 -33

No files matched your search

@@ -134,7 +134,7 @@ class SplitAnimationController(val splitSelectStateController: SplitSelectStateC
val iconView: View = taskIdAttributeContainer.iconView.asView()
builder.add(ObjectAnimator.ofFloat(thumbnail, TaskThumbnailView.SPLASH_ALPHA, 1f))
thumbnail.setShowSplashForSplitSelection(true)
if (deviceProfile.isLandscape) {
if (deviceProfile.isLeftRightSplit) {
// Center view first so scaling happens uniformly, alternatively we can move pivotX to 0
val centerThumbnailTranslationX: Float = (taskViewWidth - thumbnail.width) / 2f
val centerIconTranslationX: Float = (taskViewWidth - iconView.width) / 2f