Loading system/gd/rust/linux/stack/src/bluetooth_media.rs +7 −2 Original line number Diff line number Diff line Loading @@ -1754,9 +1754,14 @@ impl IBluetoothMedia for BluetoothMedia { self.hfp = Some(Hfp::new(&self.intf.lock().unwrap())); self.hfp.as_mut().unwrap().initialize(hfp_dispatcher); for profile in self.delay_enable_profiles.clone() { // TODO(b/284811956) A2DP needs to be enabled before AVRCP otherwise AVRCP gets memset'd. // Iterate the delay_enable_profiles hashmap directly when this is fixed. let profile_order = vec![Profile::A2dpSource, Profile::AvrcpTarget, Profile::Hfp]; for profile in profile_order { if self.delay_enable_profiles.contains(&profile) { self.enable_profile(&profile); } } true } Loading Loading
system/gd/rust/linux/stack/src/bluetooth_media.rs +7 −2 Original line number Diff line number Diff line Loading @@ -1754,9 +1754,14 @@ impl IBluetoothMedia for BluetoothMedia { self.hfp = Some(Hfp::new(&self.intf.lock().unwrap())); self.hfp.as_mut().unwrap().initialize(hfp_dispatcher); for profile in self.delay_enable_profiles.clone() { // TODO(b/284811956) A2DP needs to be enabled before AVRCP otherwise AVRCP gets memset'd. // Iterate the delay_enable_profiles hashmap directly when this is fixed. let profile_order = vec![Profile::A2dpSource, Profile::AvrcpTarget, Profile::Hfp]; for profile in profile_order { if self.delay_enable_profiles.contains(&profile) { self.enable_profile(&profile); } } true } Loading