Merge "Fix NPE where BubbleExpandedView is null when we want to show manage education view" into tm-qpr-dev

This commit is contained in:
Mady Mellor
2022-09-15 22:02:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1270,7 +1270,7 @@ public class BubbleStackView extends FrameLayout
}
final boolean seen = getPrefBoolean(ManageEducationViewKt.PREF_MANAGED_EDUCATION);
final boolean shouldShow = (!seen || BubbleDebugConfig.forceShowUserEducation(mContext))
&& mExpandedBubble != null;
&& mExpandedBubble != null && mExpandedBubble.getExpandedView() != null;
if (BubbleDebugConfig.DEBUG_USER_EDUCATION) {
Log.d(TAG, "Show manage edu: " + shouldShow);
}