Don't auto connect reverse tethering after pairing.
Added boolean param to connect() method in CachedBluetoothDevice to specify whether to connect PAN profile. This is set to true when the user clicks on a device in the paired devices list, but false when auto connecting profiles after pairing and other circumstances. Bug: 3330207 Change-Id: I6d8d50abb65a8cb24f87ad93c01693923991b6ef
This commit is contained in:
@@ -663,7 +663,7 @@ public class DockService extends Service implements AlertDialog.OnMultiChoiceCli
|
||||
}
|
||||
|
||||
if (profileManager.getPreferred(device) == auto) {
|
||||
cachedDevice.connect();
|
||||
cachedDevice.connect(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -735,7 +735,7 @@ public class DockService extends Service implements AlertDialog.OnMultiChoiceCli
|
||||
|
||||
if (callConnect) {
|
||||
if (DEBUG) Log.d(TAG, "applyBtSettings - Connecting");
|
||||
cachedDevice.connect();
|
||||
cachedDevice.connect(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user