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

Commit 2d18a9c7 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Make Bluetooth discoverability timeout configurable (again for...

Merge "Make Bluetooth discoverability timeout configurable (again for Gingerbread)" into gingerbread
parents ea26ccfe 5cd852ee
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1091,9 +1091,13 @@ public class BluetoothService extends IBluetooth.Stub {
            mHandler.removeMessages(MESSAGE_DISCOVERABLE_TIMEOUT);
            pairable = true;
            discoverable = true;
            if (duration != 0) {
                Message msg = mHandler.obtainMessage(MESSAGE_DISCOVERABLE_TIMEOUT);
                mHandler.sendMessageDelayed(msg, duration * 1000);
                if (DBG) Log.d(TAG, "BT Discoverable for " + duration + " seconds");
            } else {
                if (DBG) Log.d(TAG, "BT Discoverable infinitely");
            }
            break;
        default:
            Log.w(TAG, "Requested invalid scan mode " + mode);