From 957ed70273b2cf2bc65cd96ac0e91a35e58a0b6d Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Wed, 24 Sep 2014 18:17:36 -0400 Subject: [PATCH] getCurrentInterruptionFilter should return the filter value, not the hints. Bug: 17641218 Change-Id: I4a6ff073c04a3d3624916293824faba40f6226aa --- .../service/notification/NotificationListenerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index b22fd9c9b6214..35fff7407a214 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -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;