summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/taskbar/TaskbarUnfoldAnimationController.java
AgeCommit message (Collapse)Author
2021-10-15Do not animate statusbar unfold when in portrait orientationNick Chameyev
Disables unfold animation for statusbar when it is perpendicular to the screen fold. Moves ScopedUnfoldTransitionProgressProvider from launcher to shared SysUI/Launcher code Bug: 201518277 Test: manual Test: atest com.android.systemui.unfold.util.NaturalRotationUnfoldProgressProviderTest Change-Id: I1417ee89b132b541d5a3ed0e5ddcbc56d827da96
2021-09-08[Taskbar icons unfold animation issue] Do not take into account initial ↵Nick Chameyev
translation Removes taking into account initial translation in move from center animation. Initially it was done because in StatusBar items are aligned using translations but we decided to use different approach there so it is not necessary anymore. Now move from center animator can only set translations from positive/negative value when progress is 0 and sets it to 0 when progress is 1 (previously it was 'capturing' the initial translation and animated the translation to its original value). Taskbar icons are pre-aligned using translations when user is on launcher. After several folds/unfolds these translations were accumulating that led to incorrect positioning of the icons. Found one more issue that we didn't clear the animated views list after finishing the animation in taskbar unfold animation controller but it didn't affect the animation itself. Test: atest com.android.systemui.shared.animation.UnfoldMoveFromCenterAnimatorTest Test: unfold on launcher and use gesture nav to swipe to an app Fixes: 199126683 Change-Id: Icfb29d79fdd8f04eb5a9a369a3d01c15fd321c75
2021-09-03Add taskbar icons unfold animationNick Chameyev
Adds 'move from center' animation for taskbar icons when unfolding foldable devices. Moves unfold transition progress provider from quickstep launcher activity to TouchInteractionService to widen the scope when this provider is available to cover both launcher activity and taskbar. Launcher activity and taskbar get their own instances of unfold transition progress provider using ScopedUnfoldTransitionProgressProvider wrapper. This wrapper allows to get transition progress provider that emits events only when clients are ready to handle them. Bug: 193794563 Test: manual Change-Id: I27581bd4e145a74f526bf60f2a545e56ded322f9