Merge "Fix crash." into qt-dev

This commit is contained in:
Andrew Chant
2019-04-18 23:14:57 +00:00
committed by Android (Google) Code Review

View File

@@ -542,6 +542,9 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
* status bar, otherwise returns {@link Display#INVALID_DISPLAY}.
*/
public int getExpandedDisplayId(Context context) {
if (mStackView == null) {
return INVALID_DISPLAY;
}
boolean defaultDisplay = context.getDisplay() != null
&& context.getDisplay().getDisplayId() == DEFAULT_DISPLAY;
Bubble b = mStackView.getExpandedBubble();