7d28df80e8923285fddee0a46341726b7c27d416
When device is rotated, launcher is recreated and the existing controllers are destroyed. As part of handling the destroy signal, LauncherTaskbarUIController updates the launcher state to in-app. This launcher state change is handled by BubbleStashController which in turn notifies BubbleBarViewController that bubble bar should be collapsed. BubbleBarViewController then notifies WMShell that bubble bar should be collapsed. And that state is stored in WMShell. This causes bubble bar to collapse when it is expanded on home screen and device is rotated. Fix this by checking if the TaskbarActivityContext is already destroyed when a launcher state change happens. And if it is, ignore those state changes. Bug: 357115534 Test: expand bubble bar on home screen, rotate device, check that bubble bar remains expanded Flag: com.android.wm.shell.enable_bubble_bar Change-Id: I7e019f8d1fd7935582d84a99d3afa3ffadd92799
Description
No description provided
Languages
Java
57.2%
Kotlin
42.4%
AIDL
0.3%