OSDN Git Service

NoMan: Initialize filter value reported to listeners.
authorJohn Spurlock <jspurlock@google.com>
Thu, 12 Feb 2015 18:29:37 +0000 (13:29 -0500)
committerJohn Spurlock <jspurlock@google.com>
Thu, 12 Feb 2015 18:29:37 +0000 (13:29 -0500)
In addition to relying on change callbacks.

Bug: 19288429
Change-Id: Id54473e5fbb4eac3778781a2052ba0103076f8d1

services/core/java/com/android/server/notification/NotificationManagerService.java

index 02cacd9..f49d77d 100644 (file)
@@ -931,6 +931,7 @@ public class NotificationManagerService extends SystemService {
             mDisableNotificationEffects = true;
         }
         mZenModeHelper.readZenModeFromSetting();
+        mInterruptionFilter = mZenModeHelper.getZenModeListenerInterruptionFilter();
 
         mUserProfiles.updateCache(getContext());
         listenForCallState();
@@ -1671,6 +1672,7 @@ public class NotificationManagerService extends SystemService {
 
             if (filter == null || zenOnly) {
                 pw.println("\n  Zen Mode:");
+                pw.print("    mInterruptionFilter="); pw.println(mInterruptionFilter);
                 mZenModeHelper.dump(pw, "    ");
 
                 pw.println("\n  Zen Log:");