Fix settings app not showing correct profile connection state message.
Bug:3385085 Change-Id: Ie4b7eb6bc9d8c91264cf7f68d7830c110e34496d
This commit is contained in:
@@ -226,7 +226,7 @@ public final class BluetoothDevicePreference extends Preference implements
|
||||
|
||||
// if any profiles are connected or busy, return that status
|
||||
for (LocalBluetoothProfile profile : cachedDevice.getProfiles()) {
|
||||
int connectionStatus = profile.getConnectionStatus(device);
|
||||
int connectionStatus = cachedDevice.getProfileConnectionState(profile);
|
||||
|
||||
if (connectionStatus != BluetoothProfile.STATE_DISCONNECTED) {
|
||||
return Utils.getConnectionStateSummary(connectionStatus);
|
||||
|
Reference in New Issue
Block a user