diff options
author | Daniel Sandler <dsandler@android.com> | 2012-04-30 10:38:31 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-05-04 13:31:33 -0400 |
commit | b4b2223fa188d4f680209c80ba6bbe681a300bd5 (patch) | |
tree | c26bef8afbdde0cc43662f49aa2444cd1b790570 /core/java/android/app | |
parent | e7e9b6e0339f2636afefc8d3f4cd9d807d94b901 (diff) | |
download | frameworks_base-b4b2223fa188d4f680209c80ba6bbe681a300bd5.zip frameworks_base-b4b2223fa188d4f680209c80ba6bbe681a300bd5.tar.gz frameworks_base-b4b2223fa188d4f680209c80ba6bbe681a300bd5.tar.bz2 |
Add number back to legacy notifications.
Bug: 5816717
Change-Id: I52c98143378c315dec5b525cb3d96c214ee8196e
Diffstat (limited to 'core/java/android/app')
-rw-r--r-- | core/java/android/app/Notification.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 8f4efab..763cc10 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; |