From 0398bf70e703e89aacb074e4ef9b4a86843e3d06 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 19 Aug 2010 14:55:38 -0400 Subject: 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 --- .../com/android/statusbartest/NotificationTestList.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') 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() { -- cgit v1.1