@ Override public synchronized boolean isNotificationEnabled ( Notification notification ) { if ( filters . isEmpty ( ) ) { //Allow all return true ; } final Iterator < NotificationFilter > i = filters . iterator ( ) ; while ( i . hasNext ( ) ) { if ( i . next ( ) . isNotificationEnabled ( notification ) ) { return true ; } } return false ; }
Handle notification filtering according to stored filters .