AI 143788: am: CL 143740 Don't clear supported profiles in settings app if getRemoteClass returns error.
Also clean up the error codes returned by the framework, so that the settings app can properly detect an error. Original author: npelly Merged from: //branches/cupcake/... Automated import of CL 143788
This commit is contained in:
committed by
The Android Open Source Project
parent
36fd6d243e
commit
ea600ccfb7
@@ -485,7 +485,8 @@ public class BluetoothDevice {
|
||||
* Get the major, minor and servics classes of a remote device.
|
||||
* These classes are encoded as a 32-bit integer. See BluetoothClass.
|
||||
* @param address remote device
|
||||
* @return 32-bit class suitable for use with BluetoothClass.
|
||||
* @return 32-bit class suitable for use with BluetoothClass, or
|
||||
* BluetoothClass.ERROR on error
|
||||
*/
|
||||
public int getRemoteClass(String address) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user