diff options
author | Jake Hamby <jhamby@google.com> | 2011-01-07 10:54:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-07 10:54:05 -0800 |
commit | 99bdf2ce23cf9a48dc3d8f020b4de01da67130a5 (patch) | |
tree | 2785129b74d623574896abc8568a9132dd464b8b /src | |
parent | 5777bd011374a9acd8183e0f4523fa9bcdea1aeb (diff) | |
parent | 4bd7cb0e07a1fbc4e658810631132cebd5b1fdd6 (diff) | |
download | packages_apps_settings-99bdf2ce23cf9a48dc3d8f020b4de01da67130a5.zip packages_apps_settings-99bdf2ce23cf9a48dc3d8f020b4de01da67130a5.tar.gz packages_apps_settings-99bdf2ce23cf9a48dc3d8f020b4de01da67130a5.tar.bz2 |
Merge "Don't auto connect reverse tethering after pairing." into honeycomb
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/bluetooth/CachedBluetoothDevice.java | 10 | ||||
-rw-r--r-- | src/com/android/settings/bluetooth/DockService.java | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index c31f49d..46391d3 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -140,7 +140,7 @@ class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { if (isConnected()) { askDisconnect(); } else if (bondState == BluetoothDevice.BOND_BONDED) { - connect(); + connect(true); } else if (bondState == BluetoothDevice.BOND_NONE) { pair(); } @@ -264,18 +264,18 @@ class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { super.finalize(); } - public void connect() { + public void connect(boolean connectAllProfiles) { if (!ensurePaired()) return; mConnectAttempted = SystemClock.elapsedRealtime(); - connectWithoutResettingTimer(true); + connectWithoutResettingTimer(connectAllProfiles); } /*package*/ void onBondingDockConnect() { // Attempt to connect if UUIDs are available. Otherwise, // we will connect when the ACTION_UUID intent arrives. - connect(); + connect(false); } private void connectWithoutResettingTimer(boolean connectAllProfiles) { @@ -646,7 +646,7 @@ class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { if (mDevice.isBluetoothDock()) { onBondingDockConnect(); } else if (mConnectAfterPairing) { - connect(); + connect(false); } mConnectAfterPairing = false; } diff --git a/src/com/android/settings/bluetooth/DockService.java b/src/com/android/settings/bluetooth/DockService.java index d165f9b..8104652 100644 --- a/src/com/android/settings/bluetooth/DockService.java +++ b/src/com/android/settings/bluetooth/DockService.java @@ -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); } } |