summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-06-29 15:19:54 -0400
committerDaniel Sandler <dsandler@android.com>2010-06-29 15:19:54 -0400
commit27a8be4b3526f068e911c8edcd4ee6fa6f492c0f (patch)
treed778af9e664e886c0c9b3e44c9e7dccb3af24b2f /tests/StatusBar
parent059f009d970fb37ac4e408dcf8e1d2d2cdcf0a84 (diff)
downloadframeworks_base-27a8be4b3526f068e911c8edcd4ee6fa6f492c0f.zip
frameworks_base-27a8be4b3526f068e911c8edcd4ee6fa6f492c0f.tar.gz
frameworks_base-27a8be4b3526f068e911c8edcd4ee6fa6f492c0f.tar.bz2
Support for tapping on an immersive-mode priority notification.
When the user taps on an intruder alert (the priority notification in immersive mode), the .contentIntent in the Notification object will be sent, just as we handle tapping on a normal Notification in the windowshade. Change-Id: Ib6991837b0b2122fe138cddacf347fdbc426b99d
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
index 8c343b5..c6a4134 100644
--- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
@@ -104,6 +104,8 @@ public class StatusBarTest extends TestActivity
0,
fullScreenIntent,
PendingIntent.FLAG_CANCEL_CURRENT);
+ // if you tap on it you should get the original alert box
+ not.contentIntent = not.fullScreenIntent;
mNotificationManager.notify(id, not);
}
},