[Taskbar icons unfold animation issue] Do not take into account initial 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: I159313aae50a19bbef8c79f227dcae0d5463872d
Loading
Please register or sign in to comment