From 50d47618300016766852523111bfc7ec991f00ea Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Tue, 31 Mar 2015 12:45:23 -0700 Subject: Merge (manually) pag/209446: Increase allowed duration to connect to HOGP profile Original file was moved from packages/apps/Settings to frameworks/base. Change-Id: I26912c0461780a255281a135c60cc0da2d25ae5a --- .../android/settingslib/bluetooth/CachedBluetoothDevice.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'packages/SettingsLib') diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index e1cb878..64b4452 100755 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -104,6 +104,7 @@ public final class CachedBluetoothDevice implements Comparable SystemClock - .elapsedRealtime()) { + && (mConnectAttempted + timeout) > SystemClock.elapsedRealtime()) { connectWithoutResettingTimer(false); } dispatchAttributesChanged(); -- cgit v1.1