diff options
author | Joe Onorato <joeo@google.com> | 2010-11-19 18:12:07 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2010-11-21 16:16:28 -0800 |
commit | 8595a3dd9a6feff70f8ddbad924d79b591d611e4 (patch) | |
tree | 4812cf3728cfd931cdfaa0e87746369d645325aa /tests/StatusBar | |
parent | 46439cec0eb0da4d0f853f2d8712d0c00c98475b (diff) | |
download | base-8595a3dd9a6feff70f8ddbad924d79b591d611e4.tar.gz |
Show the number in the expanded notification instead of in the bar.
Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
Diffstat (limited to 'tests/StatusBar')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java index b87119724044..e17ed11c1561 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java @@ -75,6 +75,25 @@ public class NotificationBuilderTest extends TestActivity mNM.notify(id, b.getNotification()); } }, + + new Test("Basic Content w/ Number (1)") { + public void run() { + int id = 1; + + Notification.Builder b = new Notification.Builder(NotificationBuilderTest.this); + + b.setWhen(System.currentTimeMillis()); + b.setSmallIcon(R.drawable.ic_statusbar_chat); + b.setContentTitle("Title"); + b.setContentText("text\nline2"); + b.setContentIntent(makeContentIntent(id)); + b.setDeleteIntent(makeDeleteIntent(id)); + b.setNumber(12345); + + mNM.notify(id, b.getNotification()); + } + }, + }; private PendingIntent makeContentIntent(int id) { |