Make headset icons consistent before / after pairing
Previously A2DP would be shown before pairing with a HFP device. bug: 30677445 Change-Id: I0e9ab17197e6ee099d890d5368def36a14ca8344
This commit is contained in:
committed by
Marie Janssen
parent
4ce19f5c4f
commit
262f7fba9a
@@ -286,12 +286,12 @@ public final class BluetoothDevicePreference extends Preference implements
|
||||
}
|
||||
}
|
||||
if (btClass != null) {
|
||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
|
||||
return new Pair<Integer, String>(R.drawable.ic_bt_headphones_a2dp, HEADPHONE);
|
||||
}
|
||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {
|
||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {
|
||||
return new Pair<Integer, String>(R.drawable.ic_bt_headset_hfp, HEADSET);
|
||||
}
|
||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
|
||||
return new Pair<Integer, String>(R.drawable.ic_bt_headphones_a2dp, HEADPHONE);
|
||||
}
|
||||
}
|
||||
return new Pair<Integer, String>(R.drawable.ic_settings_bluetooth, BLUETOOTH);
|
||||
}
|
||||
|
Reference in New Issue
Block a user