commit | aa04336b3aa2b2beb4a0f659e3c7a207365b3696 | [log] [tgz] |
---|---|---|
author | Cam Bickel <cambickel@google.com> | Fri Oct 04 23:05:50 2024 +0000 |
committer | Cam Bickel <cambickel@google.com> | Tue Oct 15 15:07:45 2024 +0000 |
tree | 0a8b673c096aef0ef47c4a61fdf14210bc1b28d1 | |
parent | 9c6750cf75ba955169d955a79db428de92126a48 [diff] |
audio: Only replace route info when Bluetooth device is bonded This fixes a bug that causes non-Bluetooth devices with an `address` to have their routeId and deviceName replaced with null. The bug is fixed by detecting if the given AudioDeviceInfo is a bonded Bluetooth device before attempting to replace its info. Bug: b/371630439 Test: atest AudioManagerRouteControllerTest Flag: EXEMPT bugfix Change-Id: Ibe2452d064def3e57cfd88c0b6ed354e5dec6fd2