Merge "Fix crash while connecting channel."
This commit is contained in:
committed by
Android (Google) Code Review
commit
d4d2ba8037
@@ -294,7 +294,7 @@ final class BluetoothHealthProfileHandler {
|
||||
|
||||
private HealthChannel findChannelByPath(BluetoothDevice device, String path) {
|
||||
for (HealthChannel chan : mHealthChannels) {
|
||||
if (chan.mChannelPath.equals(path) && chan.mDevice.equals(device)) return chan;
|
||||
if (path.equals(chan.mChannelPath) && device.equals(chan.mDevice)) return chan;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user