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:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user