We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab92c0 commit cde8aaeCopy full SHA for cde8aae
core/java/android/app/Notification.java
@@ -809,6 +809,7 @@ public Notification[] newArray(int size)
809
@Deprecated
810
public void setLatestEventInfo(Context context,
811
CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent) {
812
+ // TODO: rewrite this to use Builder
813
RemoteViews contentView = new RemoteViews(context.getPackageName(),
814
R.layout.notification_template_base);
815
if (this.icon != 0) {
@@ -821,6 +822,7 @@ public void setLatestEventInfo(Context context,
821
822
contentView.setTextViewText(R.id.text, contentText);
823
}
824
if (this.when != 0) {
825
+ contentView.setViewVisibility(R.id.time, View.VISIBLE);
826
contentView.setLong(R.id.time, "setTime", when);
827
828
0 commit comments