OSDN Git Service

SysUI: Switch to NotificationListenerService
authorChristoph Studer <chstuder@google.com>
Wed, 28 May 2014 12:48:15 +0000 (14:48 +0200)
committerChristoph Studer <chstuder@google.com>
Wed, 28 May 2014 13:40:31 +0000 (15:40 +0200)
Switch SysUI to receive notifications via a NotificationListenerService
instead, byapssing StatusBarManagerService callbacks.

Bug: 15131411
Change-Id: I907a1ff28123219db1c08889d723ad1b70b191ab

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

index f4db625..eb1517d 100644 (file)
@@ -91,7 +91,7 @@ public abstract class BaseStatusBar extends SystemUI implements
     public static final String TAG = "StatusBar";
     public static final boolean DEBUG = false;
     public static final boolean MULTIUSER_DEBUG = false;
-    private static final boolean USE_NOTIFICATION_LISTENER = false;
+    private static final boolean USE_NOTIFICATION_LISTENER = true;
 
     protected static final int MSG_SHOW_RECENT_APPS = 1019;
     protected static final int MSG_HIDE_RECENT_APPS = 1020;