am f1ed1fdb: am 1b03cd8e: am 1d5e2e29: Merge "Bluetooth: Fix profile auto-connect logic" into mnc-dr-dev
* commit 'f1ed1fdb4578c205ebe2d1af6f49512219506254': Bluetooth: Fix profile auto-connect logic
This commit is contained in:
@@ -539,10 +539,10 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
|
|||||||
* Otherwise, allow the connect on UUID change.
|
* Otherwise, allow the connect on UUID change.
|
||||||
*/
|
*/
|
||||||
if (!mProfiles.isEmpty()
|
if (!mProfiles.isEmpty()
|
||||||
&& ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime()
|
&& ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime())) {
|
||||||
|| (mConnectAttempted == 0))) {
|
|
||||||
connectWithoutResettingTimer(false);
|
connectWithoutResettingTimer(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatchAttributesChanged();
|
dispatchAttributesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user