pub fn update_notification_responders(&mut self) {
        let state = if let Some(state) = self.get_active_session() {
            state.clone()
        } else {
            return;
        };

        self.notifications = self
            .notifications
            .drain()
            .map(|(event_id, queue)| {
                let curr_value = state.session_info().get_notification_value(&event_id);
                (
                    event_id,
                    queue
                        .into_iter()
                        .filter_map(|notif_data| {
                            notif_data
                                .update_responder(&event_id, curr_value.clone())
                                .unwrap_or(None)
                        })
                        .collect(),
                )
            })
            .collect();

        fx_vlog!(tag: "avrcp-tg", 1, "After evicting updated responders: {:?}", self.notifications);
    }
/// If an active session is present, update any outstanding notifications by
/// checking if notification values have changed.
/// TODO(41703): Take pos_change_interval into account when updating TRACK_POS_CHANGED.
If an active session is present, update any outstanding notifications by
checking if notification values have changed.
TODO(41703): Take pos_change_interval into account when updating TRACK_POS_CHANGED.
If an active session is present update any outstanding notifications by checking if notification values have changed . TODO ( 41703 ) : Take pos_change_interval into account when updating TRACK_POS_CHANGED .
pub fn update_notification_responders(&mut self) {
        let state = if let Some(state) = self.get_active_session() {
            state.clone()
        } else {
            return;
        };
        self.notifications = self
            .notifications
            .drain()
            .map(|(event_id, queue)| {
                let curr_value = state.session_info().get_notification_value(&event_id);
                (
                    event_id,
                    queue
                        .into_iter()
                        .filter_map(|notif_data| {
                            notif_data
                                .update_responder(&event_id, curr_value.clone())
                                .unwrap_or(None)
                        })
                        .collect(),
                )
            })
            .collect();
        fx_vlog!(tag: "avrcp-tg", 1, "After evicting updated responders: {:?}", self.notifications);
    }
pub fn update_notification_responders ( & mut self ) { let state = if let Some ( state ) = self . get_active_session ( ) { state . clone ( ) } else { return ; } ; self . notifications = self . notifications . drain ( ) . map ( | ( event_id , queue ) | { let curr_value = state . session_info ( ) . get_notification_value ( & event_id ) ; ( event_id , queue . into_iter ( ) . filter_map ( | notif_data | { notif_data . update_responder ( & event_id , curr_value . clone ( ) ) . unwrap_or ( None ) } ) . collect ( ) , ) } ) . collect ( ) ; fx_vlog ! ( tag " " 1 " " self notifications ) ; }
If an active session is present, update any outstanding notifications by
checking if notification values have changed.
If an active session is present update any outstanding notifications by checking if notification values have changed .
&mut self