Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9838d0b authored by Matthew Xie's avatar Matthew Xie Committed by Android (Google) Code Review
Browse files

Merge "Set bluetooth discoverable off at power on time if the timeout is no forever"

parents d109a7d4 d96daf1a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -602,6 +602,11 @@ public class BluetoothService extends IBluetooth.Stub {
     * It inits bond state and profile state before STATE_ON intent is broadcasted.
     */
    /*package*/ void initBluetoothAfterTurningOn() {
        String discoverable = getProperty("Discoverable", false);
        String timeout = getProperty("DiscoverableTimeout", false);
        if (discoverable.equals("true") && Integer.valueOf(timeout) != 0) {
            setAdapterPropertyBooleanNative("Discoverable", 0);
        }
        mBondState.initBondState();
        initProfileState();
    }