Skip to content

Commit 10d7e8a

Browse files
author
Martijn Coenen
committed
Bluetooth: fix enableNoAutoConnect() call.
For now, just do a regular connect. Change-Id: Ibc43098d45c82177298cb17d72a32c7904924021
1 parent 6395422 commit 10d7e8a

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)