Merge "No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks" into qt-qpr1-dev

am: 4ac6a113ed

Change-Id: I2dd8ce7f5f95bdebaacf91b7f6c9b9230acc3fc8
This commit is contained in:
Mady Mellor
2019-09-18 18:04:50 -07:00
committed by android-build-merger

View File

@@ -926,7 +926,9 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
@Override
public void onSingleTaskDisplayDrawn(int displayId) {
final Bubble expandedBubble = getExpandedBubble(mContext);
final Bubble expandedBubble = mStackView != null
? mStackView.getExpandedBubble()
: null;
if (expandedBubble != null && expandedBubble.getDisplayId() == displayId) {
expandedBubble.setContentVisibility(true);
}
@@ -934,7 +936,9 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
@Override
public void onSingleTaskDisplayEmpty(int displayId) {
final Bubble expandedBubble = getExpandedBubble(mContext);
final Bubble expandedBubble = mStackView != null
? mStackView.getExpandedBubble()
: null;
if (expandedBubble == null) {
return;
}