summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-09-26 13:59:40 -0700
committerJoe Onorato <joeo@android.com>2010-09-26 13:59:40 -0700
commitddf680bff5bb9bc04ef04667644db8ade0b38c46 (patch)
treeeff238f7b66bcd7e7faf3d7f98692f7635ddc681 /tests/StatusBar
parent30a31ef6e51abe8074e22508d88b96d24752ce0a (diff)
downloadframeworks_base-ddf680bff5bb9bc04ef04667644db8ade0b38c46.zip
frameworks_base-ddf680bff5bb9bc04ef04667644db8ade0b38c46.tar.gz
frameworks_base-ddf680bff5bb9bc04ef04667644db8ade0b38c46.tar.bz2
Touching the blue glow should close the system and notification panels.
Bug: 3029373 Change-Id: I96760656dcda20ab238305900f9964083a8e5273
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
index 7b6e2d2..2d7ee13 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
@@ -206,12 +206,16 @@ public class NotificationTestList extends TestActivity
new Test("Layout") {
public void run()
{
+ Notification n;
- mNM.notify(1, new Notification(NotificationTestList.this,
+ n = new Notification(NotificationTestList.this,
R.drawable.ic_statusbar_missedcall,
null, System.currentTimeMillis()-(1000*60*60*24),
"(453) 123-2328",
- "", null));
+ "", null);
+ n.flags |= Notification.FLAG_ONGOING_EVENT;
+
+ mNM.notify(1, n);
mNM.notify(2, new Notification(NotificationTestList.this,
R.drawable.ic_statusbar_email,