Merge "Merge "Title: Auto connection not getting initiated after pairing" am: f3da869b76 am: 24ac7eebb4" into rvc-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2020-03-18 20:26:42 +00:00
committed by Android (Google) Code Review

View File

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