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

* commit '7dd84651a25566c5a2152d935f19a11cebfc58ae':
  Display BTH connected status correctly
This commit is contained in:
Zhihai Xu
2014-04-30 18:25:22 +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) {