From a6d9fce2e16a536220d1180d6bd3916d87ffea11 Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Thu, 27 Jan 2011 20:32:21 -0800 Subject: [PATCH] Don't display extra A2DP profile icon for OPP. The getDrawableResource() method for OppProfileManager was returning the resource ID for the A2DP icon. This was causing an extra headset icon to be drawn for devices supporting OPP, when no icon should be shown for this profile. Changed to return 0. Bug: 3368197 Change-Id: Idcadaf59fe53301544cda215ca24f15608b2d727 --- .../settings/bluetooth/LocalBluetoothProfileManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java b/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java index 406ac8f4505..de15dcc50fa 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java @@ -635,7 +635,7 @@ abstract class LocalBluetoothProfileManager { @Override public int getDrawableResource() { - return R.drawable.ic_bt_headphones_a2dp; + return 0; // no icon for OPP } }