Merge "Remove BubbleBarView.mIsAnimatingNewBubble" into main
This commit is contained in:
commit
de9b1df642
4 files changed
+57
-74
No files matched your search
@@ -144,8 +144,8 @@ public class BubbleBarViewController {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBubbleBarTouchedWhileAnimating() {
|
||||
BubbleBarViewController.this.onBubbleBarTouchedWhileAnimating();
|
||||
public void onBubbleBarTouched() {
|
||||
BubbleBarViewController.this.onBubbleBarTouched();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -206,9 +206,12 @@ public class BubbleBarViewController {
|
||||
}
|
||||
}
|
||||
|
||||
private void onBubbleBarTouchedWhileAnimating() {
|
||||
mBubbleBarViewAnimator.onBubbleBarTouchedWhileAnimating();
|
||||
mBubbleStashController.onNewBubbleAnimationInterrupted(false, mBarView.getTranslationY());
|
||||
private void onBubbleBarTouched() {
|
||||
if (isAnimatingNewBubble()) {
|
||||
mBubbleBarViewAnimator.onBubbleBarTouchedWhileAnimating();
|
||||
mBubbleStashController.onNewBubbleAnimationInterrupted(false,
|
||||
mBarView.getTranslationY());
|
||||
}
|
||||
}
|
||||
|
||||
private void expandBubbleBar() {
|
||||
@@ -307,8 +310,11 @@ public class BubbleBarViewController {
|
||||
|
||||
/** Whether a new bubble is animating. */
|
||||
public boolean isAnimatingNewBubble() {
|
||||
return mBarView.isAnimatingNewBubble()
|
||||
|| (mBubbleBarViewAnimator != null && mBubbleBarViewAnimator.hasAnimatingBubble());
|
||||
return mBubbleBarViewAnimator != null && mBubbleBarViewAnimator.isAnimating();
|
||||
}
|
||||
|
||||
public boolean isNewBubbleAnimationRunningOrPending() {
|
||||
return mBubbleBarViewAnimator != null && mBubbleBarViewAnimator.hasAnimation();
|
||||
}
|
||||
|
||||
/** The horizontal margin of the bubble bar from the edge of the screen. */
|
||||
@@ -652,7 +658,7 @@ public class BubbleBarViewController {
|
||||
* from SystemUI.
|
||||
*/
|
||||
public void setExpandedFromSysui(boolean isExpanded) {
|
||||
if (isAnimatingNewBubble() && isExpanded) {
|
||||
if (isNewBubbleAnimationRunningOrPending() && isExpanded) {
|
||||
mBubbleBarViewAnimator.expandedWhileAnimating();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user