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

Commit cde8aae9 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix crash in legacy notification construction path.

Bug: 6293584
Change-Id: I8c1c5162a2e9e3ebc5a6d3fed045c6c6a64b9bfd
parent 5ab92c03
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -809,6 +809,7 @@ public class Notification implements Parcelable
    @Deprecated
    public void setLatestEventInfo(Context context,
            CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent) {
        // TODO: rewrite this to use Builder
        RemoteViews contentView = new RemoteViews(context.getPackageName(),
                R.layout.notification_template_base);
        if (this.icon != 0) {
@@ -821,6 +822,7 @@ public class Notification implements Parcelable
            contentView.setTextViewText(R.id.text, contentText);
        }
        if (this.when != 0) {
            contentView.setViewVisibility(R.id.time, View.VISIBLE);
            contentView.setLong(R.id.time, "setTime", when);
        }