Fix bubble bar position on recreate
When device is rotated, taskbar goes through recreate flow. LauncherTaskbarUIController restores the state for taskbar in-app display multiprop. Ensure that bubble bar is positioned within the taskbar bounds. The multiprop values in LauncherTaskbarUIController for taskbar in-app display progress can be restored from shared state when the device rotates. But this means when we receive updates to various indexes, the progress for that index may not match what is the actual value of the multiprop. As it relies on the max function. Make sure we pass along the actual value for in-app display progress when updating bubble bar and not the value for the index that got updated. Also make sure bubble bar translation always updates when updates are received as this is the only path for bubble bar to receive updates. Make sure that when we do override bubble bar translation using in-app display progress, any existing animation for bubble bar translation y is cancelled. Otherwise the unlock animation was animating the bubble bar to the incorrect position after unlock. Bug: 377621110 Flag: com.android.wm.shell.enable_bubble_bar Test: atest PersistentBubbleStashControllerTest Test: manual, have bubble bar with 3 button nav, swipe to -1 and rotate the device, observe that bubble bar is in the correct position Test: manual, repeat same test with all apps open, observe that bubble bar has correct position after rotation Test: manual, with gesture navigation, observe that bubble bar has correct position on home screen, -1 and all apps after rotation Change-Id: I66138e003c4b371299e40558fdadc142fbdbbcd5
Loading
Please register or sign in to comment