Skip to content

Commit 1094b7d

Browse files
Martijn CoenenAndroid (Google) Code Review
authored andcommitted
Merge "Bluetooth: fix enableNoAutoConnect() call." into jb-mr1-dev
2 parents 0b24b1d + 10d7e8a commit 1094b7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/java/android/bluetooth/BluetoothAdapter.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,10 +1246,8 @@ public void onBluetoothServiceDown() {
12461246
* @hide
12471247
*/
12481248
public boolean enableNoAutoConnect() {
1249-
try {
1250-
return mService.enableNoAutoConnect();
1251-
} catch (RemoteException e) {Log.e(TAG, "", e);}
1252-
return false;
1249+
// TODO avoid auto-connect in the new stack.
1250+
return enable();
12531251
}
12541252

12551253
/**

0 commit comments

Comments
 (0)