Skip to content

Commit

Permalink
fix(ios) fix black screen when using Bluetooth in iOS 15
Browse files Browse the repository at this point in the history
Fixes: #9996

On iOS 15 Bluetooth devices are reported twice for some reason, one with the
normal type "Bluetooth" but another type without a know (to me) type, and the
uid ends in "-reference".

While we send those unkwno devices to JS, we were not filtering them properly.
This patch skips them altogether.
  • Loading branch information
saghul committed Sep 23, 2021
1 parent 9a8b67a commit 9cc5968
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ class AudioRoutePickerDialog extends Component<Props, State> {

for (const device of devices) {
const infoMap = deviceInfoMap[device.type];

// Skip devices with unknown type.
if (!infoMap) {
// eslint-disable-next-line no-continue
continue;
}

const text = device.type === 'BLUETOOTH' && device.name ? device.name : infoMap.text;

if (infoMap) {
Expand Down

0 comments on commit 9cc5968

Please sign in to comment.