Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9be9cfe authored by Sailesh Nepal's avatar Sailesh Nepal
Browse files

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
parent 5bcbf857
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {