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 <jhtop.kim@samsung.com>
This commit is contained in:
jhtop.kim
2011-07-18 11:03:09 +09:00
committed by Jake Hamby
parent 01525c9a05
commit 298365bbf3

View File

@@ -202,7 +202,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
pref.setOrder(getProfilePreferenceIndex(profile.getOrdinal())); pref.setOrder(getProfilePreferenceIndex(profile.getOrdinal()));
pref.setOnExpandClickListener(this); pref.setOnExpandClickListener(this);
int iconResource = profile.getDrawableResource(null); // FIXME: get BT class for this? int iconResource = profile.getDrawableResource(mCachedDevice.getBtClass());
if (iconResource != 0) { if (iconResource != 0) {
pref.setProfileDrawable(getResources().getDrawable(iconResource)); pref.setProfileDrawable(getResources().getDrawable(iconResource));
} }