summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorTsuyoshi Kamata <tsuyoshi.x.kamata@sonymobile.com>2013-12-18 19:05:17 +0900
committerZhihai Xu <zhihaixu@google.com>2014-04-30 18:20:55 +0000
commit89377530c70f757aebdb5b953b73869242994265 (patch)
treeca911e065aae6ac55395865873939b755b191268 /src/com/android/settings/bluetooth
parent4c941850288011ca29466a1a80314155c0100fe3 (diff)
downloadpackages_apps_Settings-89377530c70f757aebdb5b953b73869242994265.zip
packages_apps_Settings-89377530c70f757aebdb5b953b73869242994265.tar.gz
packages_apps_Settings-89377530c70f757aebdb5b953b73869242994265.tar.bz2
Display BTH connected status correctly
This patch removes incorrect condition. (to not use LocalBluetoothProfile#isPreferred()) This condition uses the priority that already disconnected profile, so this codition always returns false. To verify this issue: 1. Turn on Bluetooth. 2. Pair and connect to BTH(A2DP/HFP) 3. The display now says "Connected" 3. Disconnect HFP profile 4. The display still says "Connected" but it should say "Connected (no phone)" Change-Id: I9e2bfa6d23bf1be7587c9556b4b05459d02c4817
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothDevicePreference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
index 80a3d1f..6481f2a 100644
--- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
+++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
@@ -232,7 +232,7 @@ public final class BluetoothDevicePreference extends Preference implements
break;
case BluetoothProfile.STATE_DISCONNECTED:
- if (profile.isProfileReady() && profile.isPreferred(cachedDevice.getDevice())) {
+ if (profile.isProfileReady()) {
if (profile instanceof A2dpProfile) {
a2dpNotConnected = true;
} else if (profile instanceof HeadsetProfile) {