From 5a3120cab76135c4e3a7d1a2f10ed64578093cb6 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Mon, 28 Feb 2011 11:27:35 -0800 Subject: [PATCH] Display imaging icon for printer devices. Change-Id: Iea2a77bb3b79934174f6e39b080ade47bd119773 --- .../settings/bluetooth/CachedBluetoothDevice.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index db20411bc60..11885ac6c72 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -528,14 +528,17 @@ class CachedBluetoothDevice implements Comparable { public int getBtClassDrawable() { if (mBtClass != null) { switch (mBtClass.getMajorDeviceClass()) { - case BluetoothClass.Device.Major.COMPUTER: - return R.drawable.ic_bt_laptop; + case BluetoothClass.Device.Major.COMPUTER: + return R.drawable.ic_bt_laptop; - case BluetoothClass.Device.Major.PHONE: - return R.drawable.ic_bt_cellphone; + case BluetoothClass.Device.Major.PHONE: + return R.drawable.ic_bt_cellphone; - case BluetoothClass.Device.Major.PERIPHERAL: - return getHidClassDrawable(); + case BluetoothClass.Device.Major.PERIPHERAL: + return getHidClassDrawable(); + + case BluetoothClass.Device.Major.IMAGING: + return R.drawable.ic_bt_imaging; } } else { Log.w(TAG, "mBtClass is null");