Fix in-call UI crash on Nova devcies (framework/base)
If a status hint icon wasn't set we'd crash. Fix was to set StatusHitns.mIcon to null if the icon resource ID' was 0. BUG: 21168985 Change-Id: I33c06169f9e184b063e6fd10f77408bc262ea3c8
This commit is contained in:
@@ -42,7 +42,8 @@ public final class StatusHints implements Parcelable {
|
||||
@SystemApi @Deprecated
|
||||
public StatusHints(ComponentName packageName, CharSequence label, int iconResId,
|
||||
Bundle extras) {
|
||||
this(label, Icon.createWithResource(packageName.getPackageName(), iconResId), extras);
|
||||
this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(),
|
||||
iconResId), extras);
|
||||
}
|
||||
|
||||
public StatusHints(CharSequence label, Icon icon, Bundle extras) {
|
||||
|
||||
Reference in New Issue
Block a user