Do not allow apps to cause Bluetooth to be discoverable forever

am: 6dcab67c0c

Change-Id: Ifaef229a60b74bb2708159232fe8f6792ded7647
This commit is contained in:
Ajay Panicker
2016-08-18 21:57:51 +00:00
committed by android-build-merger

View File

@@ -267,7 +267,7 @@ public class RequestPermissionActivity extends Activity implements
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;
}
} else {