Animate the bubble bar to show new bubble
This change updates that animation that plays when a new bubble notification is received. We now animate the entire bubble bar rather than the individual bubble. Demo: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/dwbsZJZlqLwJ2IG7RfJZ7c Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT Bug: 280605846 Test: atest BubbleBarViewAnimatorTest Change-Id: I2dc58ad61b880d76c9eefa462c3aee4e8bbb3584
This commit is contained in:
@@ -189,6 +189,10 @@ public class BubbleBarViewController {
|
||||
return mBubbleBarTranslationY;
|
||||
}
|
||||
|
||||
float getBubbleBarCollapsedHeight() {
|
||||
return mBarView.getBubbleBarCollapsedHeight();
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the bubble bar is visible or not.
|
||||
*/
|
||||
@@ -222,10 +226,9 @@ public class BubbleBarViewController {
|
||||
return mBarView.getBubbleBarBounds();
|
||||
}
|
||||
|
||||
/** The bounds of the animating bubble, or {@code null} if no bubble is animating. */
|
||||
@Nullable
|
||||
public Rect getAnimatingBubbleBounds() {
|
||||
return mBarView.getAnimatingBubbleBounds();
|
||||
/** Whether a new bubble is animating. */
|
||||
public boolean isAnimatingNewBubble() {
|
||||
return mBarView.isAnimatingNewBubble();
|
||||
}
|
||||
|
||||
/** The horizontal margin of the bubble bar from the edge of the screen. */
|
||||
|
||||
Reference in New Issue
Block a user