diff options
| author | 2011-08-11 05:16:53 -0700 | |
|---|---|---|
| committer | 2011-08-11 05:16:53 -0700 | |
| commit | 6a9a4a078c11f1193498873059ada44c914ba8dd (patch) | |
| tree | d6fa956c3feca86fb7ad29880f2dfba0def5f551 | |
| parent | 62b3503b22b2ba771518049b8ac1c4930034e5a1 (diff) | |
| parent | 542f0510d42e225546acc01842adfafb27f627b6 (diff) | |
Merge "Fix fullScreenAlert test."
| -rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java index da5f488ed19c..ad3073a11cb8 100644 --- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java @@ -167,10 +167,13 @@ public class StatusBarTest extends TestActivity }, new Test("Priority notification") { public void run() { - Notification not = new Notification( - R.drawable.stat_sys_phone, - "Incoming call from: Imperious Leader", - System.currentTimeMillis()-(1000*60*60*24) + Notification not = new Notification(); + not.icon = R.drawable.stat_sys_phone; + not.when = System.currentTimeMillis()-(1000*60*60*24); + not.setLatestEventInfo(StatusBarTest.this, + "Incoming call", + "from: Imperious Leader", + null ); not.flags |= Notification.FLAG_HIGH_PRIORITY; Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class); |