b/2140751 Fixed the problem where BT device icon was showing until pairing happens (actually UUID comes in to be exact)
Change-Id: I670f29d5f9a577ec177b049cfd9c775bf91b60c3
This commit is contained in:
@@ -610,13 +610,22 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
return R.drawable.ic_bt_cellphone;
|
return R.drawable.ic_bt_cellphone;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mProfiles.contains(Profile.A2DP)) {
|
if (mProfiles.size() > 0) {
|
||||||
return R.drawable.ic_bt_headphones_a2dp;
|
if (mProfiles.contains(Profile.A2DP)) {
|
||||||
} else if (mProfiles.contains(Profile.HEADSET)) {
|
return R.drawable.ic_bt_headphones_a2dp;
|
||||||
return R.drawable.ic_bt_headset_hfp;
|
} else if (mProfiles.contains(Profile.HEADSET)) {
|
||||||
|
return R.drawable.ic_bt_headset_hfp;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
if (mBtClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
|
||||||
|
return R.drawable.ic_bt_headphones_a2dp;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (mBtClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {
|
||||||
|
return R.drawable.ic_bt_headset_hfp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user