Unstash hotseat immediately if go out of the launcher home.
When navigation mode is set to 3 buttons, it is possible for user to click on recent apps button, so for such scenario taskbar should be immediately un-stashed Test: Manual Set 3 buttons navigation mode. Go to Launcher home. Expand bubble bar. Press recent apps button. Press the home button. Observe hotseat is visible. Video: http://recall/-/gx8ASgewUeUS3QYohfrd1J/fX0gSp18Riw8mYYAw0wj8W Bug: 367488218 Flag: com.android.wm.shell.enable_bubble_bar Change-Id: Id65fd9add720125a340294311d470f2be50d43f8
This commit is contained in:
@@ -748,7 +748,8 @@ public class BubbleBarViewController {
|
||||
|
||||
/**
|
||||
* Hides the persistent taskbar if it is going to intersect with the expanded bubble bar if in
|
||||
* app or overview. Set the hotseat stashed state if on launcher home screen.
|
||||
* app or overview. Set the hotseat stashed state if on launcher home screen. If not on launcher
|
||||
* home screen and hotseat is stashed immediately un-stashes the hotseat.
|
||||
*/
|
||||
private void adjustTaskbarAndHotseatToBubbleBarState(boolean isBubbleBarExpanded) {
|
||||
if (mBubbleStashController.isBubblesShowingOnHome()) {
|
||||
@@ -760,6 +761,10 @@ public class BubbleBarViewController {
|
||||
.animateToValue(hideTaskbar ? 0 : 1)
|
||||
.start();
|
||||
}
|
||||
if (!mBubbleStashController.isBubblesShowingOnHome()
|
||||
&& mTaskbarStashController.isHiddenForBubbles()) {
|
||||
mTaskbarStashController.unStashHotseatInstantly();
|
||||
}
|
||||
}
|
||||
|
||||
/** Return {@code true} if expanded bubble bar would intersect the taskbar. */
|
||||
|
||||
Reference in New Issue
Block a user