Merge "Bluetooth: Fix profile auto-connect logic" into mnc-dr-dev

This commit is contained in:
Andre Eisenbach
2015-09-04 00:02:57 +00:00
committed by Android (Google) Code Review

View File

@@ -539,10 +539,10 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
* Otherwise, allow the connect on UUID change.
*/
if (!mProfiles.isEmpty()
&& ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime()
|| (mConnectAttempted == 0))) {
&& ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime())) {
connectWithoutResettingTimer(false);
}
dispatchAttributesChanged();
}