Merge "Fix an issue where bubbles didn't collapse onTaskMovedToFront" into tm-dev
This commit is contained in:
@@ -383,23 +383,15 @@ public class BubbleController {
|
||||
mTaskStackListener.addListener(new TaskStackListenerCallback() {
|
||||
@Override
|
||||
public void onTaskMovedToFront(int taskId) {
|
||||
if (mSysuiProxy == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
mSysuiProxy.isNotificationShadeExpand((expand) -> {
|
||||
mMainExecutor.execute(() -> {
|
||||
int expandedId = INVALID_TASK_ID;
|
||||
if (mStackView != null && mStackView.getExpandedBubble() != null
|
||||
&& isStackExpanded() && !mStackView.isExpansionAnimating()
|
||||
&& !expand) {
|
||||
expandedId = mStackView.getExpandedBubble().getTaskId();
|
||||
}
|
||||
|
||||
if (expandedId != INVALID_TASK_ID && expandedId != taskId) {
|
||||
mBubbleData.setExpanded(false);
|
||||
}
|
||||
});
|
||||
mMainExecutor.execute(() -> {
|
||||
int expandedId = INVALID_TASK_ID;
|
||||
if (mStackView != null && mStackView.getExpandedBubble() != null
|
||||
&& isStackExpanded() && !mStackView.isExpansionAnimating()) {
|
||||
expandedId = mStackView.getExpandedBubble().getTaskId();
|
||||
}
|
||||
if (expandedId != INVALID_TASK_ID && expandedId != taskId) {
|
||||
mBubbleData.setExpanded(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user