From da695520782a9feba963840aad596a20929396f2 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 7 Sep 2010 14:13:12 -0400 Subject: [PATCH] When notifications are updated, don't re-show the ticker unless the text has changed. Bug: 2963867 Change-Id: I24b5bc958fb6eb0d753c88178a385232c75ea438 --- .../com/android/systemui/statusbar/StatusBarService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java index 8f2da7abd794e..af736aa33195c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java @@ -46,6 +46,7 @@ import android.os.Handler; import android.os.Message; import android.os.ServiceManager; import android.os.SystemClock; +import android.text.TextUtils; import android.util.Slog; import android.util.Log; import android.view.Display; @@ -462,7 +463,11 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks } // Restart the ticker if it's still running - tick(notification); + if (notification.notification.tickerText != null + && !TextUtils.equals(notification.notification.tickerText, + oldEntry.notification.notification.tickerText)) { + tick(notification); + } // Recalculate the position of the sliding windows and the titles. setAreThereNotifications();