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

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

Merge "Make Bluetooth discoverability timeout configurable (also supporting...

Merge "Make Bluetooth discoverability timeout configurable (also supporting infinite timeout)." into froyo
parents c0b870db 62be861e
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -999,9 +999,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);