Loading core/java/android/server/BluetoothService.java +5 −0 Original line number Diff line number Diff line Loading @@ -611,6 +611,11 @@ public class BluetoothService extends IBluetooth.Stub { /*package*/ void initBluetoothAfterTurningOn() { String discoverable = getProperty("Discoverable", false); String timeout = getProperty("DiscoverableTimeout", false); if (timeout == null) { Log.w(TAG, "Null DiscoverableTimeout property"); // assign a number, anything not 0 timeout = "1"; } if (discoverable.equals("true") && Integer.valueOf(timeout) != 0) { setAdapterPropertyBooleanNative("Discoverable", 0); } Loading Loading
core/java/android/server/BluetoothService.java +5 −0 Original line number Diff line number Diff line Loading @@ -611,6 +611,11 @@ public class BluetoothService extends IBluetooth.Stub { /*package*/ void initBluetoothAfterTurningOn() { String discoverable = getProperty("Discoverable", false); String timeout = getProperty("DiscoverableTimeout", false); if (timeout == null) { Log.w(TAG, "Null DiscoverableTimeout property"); // assign a number, anything not 0 timeout = "1"; } if (discoverable.equals("true") && Integer.valueOf(timeout) != 0) { setAdapterPropertyBooleanNative("Discoverable", 0); } Loading