am d6b0b172: am 7dd84651: Merge "Display BTH connected status correctly"

* commit 'd6b0b1721a684be1805025908c4733a6b02794a4':
  Display BTH connected status correctly
This commit is contained in:
Zhihai Xu
2014-04-30 18:28:49 +00:00
committed by Android Git Automerger

View File

@@ -232,7 +232,7 @@ public final class BluetoothDevicePreference extends Preference implements
break; break;
case BluetoothProfile.STATE_DISCONNECTED: case BluetoothProfile.STATE_DISCONNECTED:
if (profile.isProfileReady() && profile.isPreferred(cachedDevice.getDevice())) { if (profile.isProfileReady()) {
if (profile instanceof A2dpProfile) { if (profile instanceof A2dpProfile) {
a2dpNotConnected = true; a2dpNotConnected = true;
} else if (profile instanceof HeadsetProfile) { } else if (profile instanceof HeadsetProfile) {