Merge "Fix NPE in BubbleTextView" into tm-dev am: 2f06a23ed7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17199276

Change-Id: Ia4f6cffbd125dcda1240e0c6de636e856ef4fd49
This commit is contained in:
TreeHugger Robot
2022-03-15 22:38:51 +00:00
committed by Automerger Merge Worker
@@ -867,6 +867,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
}
protected void applyCompoundDrawables(Drawable icon) {
if (icon == null) {
// Icon can be null when we use the BubbleTextView for text only.
return;
}
// If we had already set an icon before, disable relayout as the icon size is the
// same as before.
mDisableRelayout = mIcon != null;