mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Fix NPE in BubbleTextView
- Icon can be null when we use BTV for text only Bug: 223809081 Test: manual Change-Id: I9efd8e4b420127beb249b20e71ae37c359bb6467
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user