Merge "Title: Auto connection not getting initiated after pairing" am: f3da869b76

Change-Id: Ie08cdb280d885d18950d5b4ba81466390a4560bd
This commit is contained in:
Treehugger Robot
2020-03-18 20:14:29 +00:00
committed by Automerger Merge Worker

View File

@@ -611,8 +611,8 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
* If a connect was attempted earlier without any UUID, we will do the connect now. * If a connect was attempted earlier without any UUID, we will do the connect now.
* Otherwise, allow the connect on UUID change. * Otherwise, allow the connect on UUID change.
*/ */
if (!mProfiles.isEmpty() if ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime()) {
&& ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime())) { Log.d(TAG, "onUuidChanged: triggering connectAllEnabledProfiles");
connectAllEnabledProfiles(); connectAllEnabledProfiles();
} }