Fix settings app not showing correct profile connection state message.

Bug:3385085
Change-Id: Ie4b7eb6bc9d8c91264cf7f68d7830c110e34496d
This commit is contained in:
Jaikumar Ganesh
2011-03-04 10:25:38 -08:00
parent d61737b560
commit 50e0b0cf87
2 changed files with 18 additions and 4 deletions

View File

@@ -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);