summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar/src
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-08-19 14:55:38 -0400
committerDaniel Sandler <dsandler@android.com>2010-08-19 16:59:11 -0400
commit0398bf70e703e89aacb074e4ef9b4a86843e3d06 (patch)
tree48ee9a9496e0435685d536e37b58f0041cd1c0f2 /tests/StatusBar/src
parentbccfcd95d3cc4029c1ed8514d31436a857283873 (diff)
downloadframeworks_base-0398bf70e703e89aacb074e4ef9b4a86843e3d06.zip
frameworks_base-0398bf70e703e89aacb074e4ef9b4a86843e3d06.tar.gz
frameworks_base-0398bf70e703e89aacb074e4ef9b4a86843e3d06.tar.bz2
Fix periodically disappearing status icons.
Occasionally the animation listener wasn't being told that the ticker animation had completed; this callback was essential to keeping the status bar's internal state correct (namely, setting mTicking=false). The safest thing to do is simply set mTicking to false immediately upon tickerDone() or tickerHalting(). Bug: 2915280 Change-Id: I997911b12fa2985fa83b42154fb3485220886219
Diffstat (limited to 'tests/StatusBar/src')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
index 4d071e3..21f3be4 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
@@ -637,6 +637,20 @@ public class NotificationTestList extends TestActivity
}
},
+ new Test("Ticker") {
+ public void run() {
+ Notification not = new Notification(
+ R.drawable.app_gmail,
+ "New mail from joeo@example.com, on the topic of very long ticker texts",
+ System.currentTimeMillis());
+ not.setLatestEventInfo(NotificationTestList.this,
+ "A new message awaits",
+ "The contents are very interesting and important",
+ makeIntent());
+ mNM.notify(1, not);
+ }
+ },
+
new Test("Crash") {
public void run()
{