OSDN Git Service

getCurrentInterruptionFilter should return the filter value, not the hints.
authorChris Wren <cwren@android.com>
Wed, 24 Sep 2014 22:17:36 +0000 (18:17 -0400)
committerChris Wren <cwren@android.com>
Wed, 24 Sep 2014 22:17:36 +0000 (18:17 -0400)
Bug: 17641218
Change-Id: I4a6ff073c04a3d3624916293824faba40f6226aa

core/java/android/service/notification/NotificationListenerService.java

index b22fd9c..35fff74 100644 (file)
@@ -478,7 +478,7 @@ public abstract class NotificationListenerService extends Service {
     public final int getCurrentInterruptionFilter() {
         if (!isBound()) return 0;
         try {
-            return getNotificationInterface().getHintsFromListener(mWrapper);
+            return getNotificationInterface().getInterruptionFilterFromListener(mWrapper);
         } catch (android.os.RemoteException ex) {
             Log.v(TAG, "Unable to contact notification manager", ex);
             return 0;