From 298365bbf3e2203aa94e8c2a69a0f5ab7623f0e2 Mon Sep 17 00:00:00 2001 From: "jhtop.kim" Date: Mon, 18 Jul 2011 11:03:09 +0900 Subject: Bluetooth : Fix for changing the BT device icon if the calss is null (mouse) - mouse is displayed as keyboard. if class is null, default icon is keyboard in hid profile Change-Id: I2ff928ce1032d8eb492d81fff2e7fb218970b768 Signed-off-by: jhtop.kim --- src/com/android/settings/bluetooth/DeviceProfilesSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') diff --git a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java index c3dc5bc..cee2a53 100755 --- a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java +++ b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java @@ -202,7 +202,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment pref.setOrder(getProfilePreferenceIndex(profile.getOrdinal())); pref.setOnExpandClickListener(this); - int iconResource = profile.getDrawableResource(null); // FIXME: get BT class for this? + int iconResource = profile.getDrawableResource(mCachedDevice.getBtClass()); if (iconResource != 0) { pref.setProfileDrawable(getResources().getDrawable(iconResource)); } -- cgit v1.1