Merge changes I74af6a72,I603a67a8 into main
* changes: Animate bubble bar alpha when notif shade opens Set bubble bar invisible while stashed
This commit is contained in:
@@ -946,7 +946,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the taskbar icons and background when the notication shade is expanded.
|
||||
* Hides the taskbar icons and background when the notification shade is expanded.
|
||||
*/
|
||||
private void onNotificationShadeExpandChanged(boolean isExpanded, boolean skipAnim) {
|
||||
float alpha = isExpanded ? 0 : 1;
|
||||
@@ -955,6 +955,12 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
TaskbarViewController.ALPHA_INDEX_NOTIFICATION_EXPANDED).animateToValue(alpha));
|
||||
anim.play(mControllers.taskbarDragLayerController.getNotificationShadeBgTaskbar()
|
||||
.animateToValue(alpha));
|
||||
|
||||
mControllers.bubbleControllers.ifPresent(controllers -> {
|
||||
BubbleBarViewController bubbleBarViewController = controllers.bubbleBarViewController;
|
||||
anim.play(bubbleBarViewController.getBubbleBarAlpha().get(0).animateToValue(alpha));
|
||||
});
|
||||
|
||||
anim.start();
|
||||
if (skipAnim) {
|
||||
anim.end();
|
||||
|
||||
Reference in New Issue
Block a user