Do not allow apps to cause Bluetooth to be discoverable forever am: 6dcab67c0c am: 091986f33a

am: c6f63a807f

Change-Id: I541318298961a88cf55d36769ffc4348d41b62fc
This commit is contained in:
Ajay Panicker
2016-08-18 22:09:10 +00:00
committed by android-build-merger

View File

@@ -286,7 +286,7 @@ public class RequestPermissionActivity extends Activity implements
Log.d(TAG, "Setting Bluetooth Discoverable Timeout = " + mTimeout); Log.d(TAG, "Setting Bluetooth Discoverable Timeout = " + mTimeout);
if (mTimeout < 0 || mTimeout > MAX_DISCOVERABLE_TIMEOUT) { if (mTimeout < 1 || mTimeout > MAX_DISCOVERABLE_TIMEOUT) {
mTimeout = BluetoothDiscoverableEnabler.DEFAULT_DISCOVERABLE_TIMEOUT; mTimeout = BluetoothDiscoverableEnabler.DEFAULT_DISCOVERABLE_TIMEOUT;
} }
} else { } else {