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

am: 091986f33a

Change-Id: I2231d4bb2d339bbcf4a248e1702c3efae82c544d
This commit is contained in:
Ajay Panicker
2016-08-18 22:01:26 +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); 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 {