From b4b2223fa188d4f680209c80ba6bbe681a300bd5 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Mon, 30 Apr 2012 10:38:31 -0400 Subject: [PATCH] Add number back to legacy notifications. Bug: 5816717 Change-Id: I52c98143378c315dec5b525cb3d96c214ee8196e --- core/java/android/app/Notification.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 8f4efab5a099e..763cc1024f232 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -806,6 +806,10 @@ public class Notification implements Parcelable contentView.setViewVisibility(R.id.time, View.VISIBLE); contentView.setLong(R.id.time, "setTime", when); } + if (this.number != 0) { + NumberFormat f = NumberFormat.getIntegerInstance(); + contentView.setTextViewText(R.id.info, f.format(this.number)); + } this.contentView = contentView; this.contentIntent = contentIntent;