Merge "Make headset icons consistent before / after pairing" am: 690bdb22c9
am: a2e068a2b4
am: 60eb5503e8
am: a78e718b26
Change-Id: I20b0fe30ab6b882e4f517147e9ffabe786d73988
This commit is contained in:
@@ -284,12 +284,12 @@ public final class BluetoothDevicePreference extends Preference implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (btClass != null) {
|
if (btClass != null) {
|
||||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
|
if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {
|
||||||
return new Pair<Integer, String>(R.drawable.ic_bt_headphones_a2dp, HEADPHONE);
|
|
||||||
}
|
|
||||||
if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {
|
|
||||||
return new Pair<Integer, String>(R.drawable.ic_bt_headset_hfp, 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);
|
return new Pair<Integer, String>(R.drawable.ic_settings_bluetooth, BLUETOOTH);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user