Merge "Do not allow apps to cause Bluetooth to be discoverable forever" am: 692ad7c9ec
am: 717d9f205a
Change-Id: I1c4f627f6792109db1fec087855962bf4f635b7c
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user