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

Commit 827de2d7 authored by Srikanth Uppala's avatar Srikanth Uppala Committed by Android (Google) Code Review
Browse files

Fix discoverability timeout issues. (a) implement timeout logic (b) persist...

Fix discoverability timeout issues. (a) implement timeout logic (b) persist 'never timeout' after reboot (c) code cleanup

Change-Id: Iacaec4a48a45935a49576c140ea11ea3d0da6361
parent 3b147b77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -670,7 +670,8 @@ public final class BluetoothAdapter {
    /** @hide */
    public boolean setScanMode(int mode) {
        if (getState() != STATE_ON) return false;
        return setScanMode(mode, 120);
        /* getDiscoverableTimeout() to use the latest from NV than use 0 */
        return setScanMode(mode, getDiscoverableTimeout());
    }

    /** @hide */