Animate the bubble bar Y for task bar pinned/unpinned switches.
Animate the horizontal position of the bubble bar on taskbar pinned / unpinned switches. Bug: 345698412 Test: TaskbarPinningControllerTest Flag: com.android.wm.shell.enable_bubble_bar Change-Id: If330dc9e5f7b16a588973ad6043a5dc6709e13ab
This commit is contained in:
1 parent
bea43b0c03
commit
eedc7ab8fd
2 files changed
+60
-3
No files matched your search
@@ -30,6 +30,7 @@ import com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK
|
||||
import com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASKBAR_UNPINNED
|
||||
import com.android.launcher3.taskbar.TaskbarDividerPopupView.Companion.createAndPopulate
|
||||
import java.io.PrintWriter
|
||||
import kotlin.jvm.optionals.getOrNull
|
||||
|
||||
/** Controls taskbar pinning through a popup view. */
|
||||
class TaskbarPinningController(private val context: TaskbarActivityContext) :
|
||||
@@ -119,7 +120,14 @@ class TaskbarPinningController(private val context: TaskbarActivityContext) :
|
||||
taskbarViewController.taskbarIconScaleForPinning.animateToValue(animateToValue),
|
||||
taskbarViewController.taskbarIconTranslationXForPinning.animateToValue(animateToValue),
|
||||
)
|
||||
|
||||
controllers.bubbleControllers.getOrNull()?.bubbleBarViewController?.let {
|
||||
// if bubble bar is not visible no need to add it`s animations
|
||||
if (!it.isBubbleBarVisible) return@let
|
||||
// TODO(b/345698412): add scale animation
|
||||
animatorSet.playTogether(
|
||||
it.bubbleBarTranslationYForPinning.animateToValue(animateToValue)
|
||||
)
|
||||
}
|
||||
animatorSet.interpolator = Interpolators.EMPHASIZED
|
||||
return animatorSet
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user