diff options
author | Joe Onorato <joeo@google.com> | 2011-01-15 16:22:24 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2011-01-15 16:22:24 -0800 |
commit | 80a44401a22344f7eabce6976372ab144ef22893 (patch) | |
tree | b13a229ef7c79e0d98feeb337359f1d060ad0e79 /tests/StatusBar/src/com/android | |
parent | a47aa87a19c733e28d9d2db1c4eb7f29d668db7b (diff) | |
download | frameworks_base-80a44401a22344f7eabce6976372ab144ef22893.zip frameworks_base-80a44401a22344f7eabce6976372ab144ef22893.tar.gz frameworks_base-80a44401a22344f7eabce6976372ab144ef22893.tar.bz2 |
Need to update the largeIcon for notifications when we're reapplying the views.
Bug: 3298062
Change-Id: I6bb72c0b93e00a9de8cc2633ac07add0a572a20f
Diffstat (limited to 'tests/StatusBar/src/com/android')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java index e9a3513..5a2ebac 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java @@ -16,6 +16,8 @@ package com.android.statusbartest; +import java.util.GregorianCalendar; + import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; @@ -190,8 +192,14 @@ public class NotificationBuilderTest extends Activity // when switch (getRadioChecked(R.id.group_when)) { - case R.id.when_midnight: + case R.id.when_midnight: { + GregorianCalendar c = new GregorianCalendar(); + c.set(GregorianCalendar.HOUR_OF_DAY, 0); + c.set(GregorianCalendar.MINUTE, 0); + c.set(GregorianCalendar.SECOND, 0); + b.setWhen(c.getTimeInMillis()); break; + } case R.id.when_now: b.setWhen(System.currentTimeMillis()); break; @@ -276,6 +284,9 @@ public class NotificationBuilderTest extends Activity case R.id.large_icon_pineapple: b.setLargeIcon(loadBitmap(R.drawable.pineapple)); break; + case R.id.large_icon_pineapple2: + b.setLargeIcon(loadBitmap(R.drawable.pineapple2)); + break; } // sound TODO |