Merge "No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4ac6a113ed
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user