Merge "Fix crash in BluetoothControllerImpl" into lmp-mr1-dev
This commit is contained in:
@@ -289,9 +289,11 @@ public class BluetoothControllerImpl implements BluetoothController {
|
|||||||
.getDevicesMatchingConnectionStates(connectionType);
|
.getDevicesMatchingConnectionStates(connectionType);
|
||||||
for (int k = 0; k < devices.size(); k++) {
|
for (int k = 0; k < devices.size(); k++) {
|
||||||
DeviceInfo info = mDeviceInfo.get(devices.get(k));
|
DeviceInfo info = mDeviceInfo.get(devices.get(k));
|
||||||
info.connectionState = CONNECTION_STATES[i];
|
if (info != null) {
|
||||||
if (CONNECTION_STATES[i] == BluetoothProfile.STATE_CONNECTED) {
|
info.connectionState = CONNECTION_STATES[i];
|
||||||
info.connectedProfiles.put(profile, true);
|
if (CONNECTION_STATES[i] == BluetoothProfile.STATE_CONNECTED) {
|
||||||
|
info.connectedProfiles.put(profile, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user