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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user