Merge "Display imaging icon for printer devices."
This commit is contained in:
committed by
Android (Google) Code Review
commit
20436ad626
@@ -528,14 +528,17 @@ class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> {
|
|||||||
public int getBtClassDrawable() {
|
public int getBtClassDrawable() {
|
||||||
if (mBtClass != null) {
|
if (mBtClass != null) {
|
||||||
switch (mBtClass.getMajorDeviceClass()) {
|
switch (mBtClass.getMajorDeviceClass()) {
|
||||||
case BluetoothClass.Device.Major.COMPUTER:
|
case BluetoothClass.Device.Major.COMPUTER:
|
||||||
return R.drawable.ic_bt_laptop;
|
return R.drawable.ic_bt_laptop;
|
||||||
|
|
||||||
case BluetoothClass.Device.Major.PHONE:
|
case BluetoothClass.Device.Major.PHONE:
|
||||||
return R.drawable.ic_bt_cellphone;
|
return R.drawable.ic_bt_cellphone;
|
||||||
|
|
||||||
case BluetoothClass.Device.Major.PERIPHERAL:
|
case BluetoothClass.Device.Major.PERIPHERAL:
|
||||||
return getHidClassDrawable();
|
return getHidClassDrawable();
|
||||||
|
|
||||||
|
case BluetoothClass.Device.Major.IMAGING:
|
||||||
|
return R.drawable.ic_bt_imaging;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.w(TAG, "mBtClass is null");
|
Log.w(TAG, "mBtClass is null");
|
||||||
|
|||||||
Reference in New Issue
Block a user