am 1f689f7e: Merge "When notifications are updated, don\'t re-show the ticker unless the text has changed." into gingerbread

Merge commit '1f689f7e35464b1ccd3ce3307b6d92283ee1290d' into gingerbread-plus-aosp

* commit '1f689f7e35464b1ccd3ce3307b6d92283ee1290d':
  When notifications are updated, don't re-show the ticker unless the text has changed.
This commit is contained in:
Joe Onorato
2010-09-07 11:18:46 -07:00
committed by Android Git Automerger

View File

@@ -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();