Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6e6aa6c authored by David Lin's avatar David Lin Committed by Android (Google) Code Review
Browse files

Merge "Fix IAE for bluetooth routes without set BT address" into 24D1-dev

parents 155d65ac 800ba45f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -527,6 +527,10 @@ public abstract class InfoMediaManager extends MediaManager {
            case TYPE_HEARING_AID:
            case TYPE_BLUETOOTH_A2DP:
            case TYPE_BLE_HEADSET:
                if (route.getAddress() == null) {
                    Log.e(TAG, "Ignoring bluetooth route with no set address: " + route);
                    break;
                }
                final BluetoothDevice device =
                        BluetoothAdapter.getDefaultAdapter().getRemoteDevice(route.getAddress());
                final CachedBluetoothDevice cachedDevice =