@@ -1842,7 +1842,7 @@ void dumpImpl(PrintWriter pw, DumpFilter filter) {
18421842 }
18431843 pw .println (':' );
18441844 int N ;
1845- final boolean zenOnly = filter != null && filter .zen ;
1845+ final boolean zenOnly = filter . filtered && filter .zen ;
18461846
18471847 if (!zenOnly ) {
18481848 synchronized (mToastQueue ) {
@@ -1864,13 +1864,13 @@ void dumpImpl(PrintWriter pw, DumpFilter filter) {
18641864 pw .println (" Notification List:" );
18651865 for (int i =0 ; i <N ; i ++) {
18661866 final NotificationRecord nr = mNotificationList .get (i );
1867- if (filter != null && !filter .matches (nr .sbn )) continue ;
1867+ if (filter . filtered && !filter .matches (nr .sbn )) continue ;
18681868 nr .dump (pw , " " , getContext (), filter .redact );
18691869 }
18701870 pw .println (" " );
18711871 }
18721872
1873- if (filter == null ) {
1873+ if (! filter . filtered ) {
18741874 N = mLights .size ();
18751875 if (N > 0 ) {
18761876 pw .println (" Lights List:" );
@@ -1911,7 +1911,7 @@ void dumpImpl(PrintWriter pw, DumpFilter filter) {
19111911 mUsageStats .dump (pw , " " , filter );
19121912 }
19131913
1914- if (filter == null || zenOnly ) {
1914+ if (! filter . filtered || zenOnly ) {
19151915 pw .println ("\n Zen Mode:" );
19161916 pw .print (" mInterruptionFilter=" ); pw .println (mInterruptionFilter );
19171917 mZenModeHelper .dump (pw , " " );
0 commit comments