Suppress bubble animation when bar is hidden
This change suppresses the new bubble animation when the notification shade is open and when the device is locked.
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Fixes: 332912942
Test: manual
- Use test app to trigger a bubble with delay
- Lock the device/pull down the notification shade
- Observe the bubble is not animating
- Unlock/collapse the shade
- Observe new bubble was added to the bubble bar
Change-Id: I0b1d42a9d57b29807f113ae45ff60349341272ef
This commit is contained in:
@@ -266,6 +266,11 @@ public class BubbleBarViewController {
|
||||
mBarView.setUpdateSelectedBubbleAfterCollapse(updateSelectedBubbleAfterCollapse);
|
||||
}
|
||||
|
||||
/** Returns whether the bubble bar should be hidden because of the current sysui state. */
|
||||
boolean isHiddenForSysui() {
|
||||
return mHiddenForSysui;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether the bubble bar should be hidden due to SysUI state (e.g. on lockscreen).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user