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

Commit 5cd852ee authored by Hermann Czedik-Eysenberg's avatar Hermann Czedik-Eysenberg Committed by RieGo
Browse files

Make Bluetooth discoverability timeout configurable (again for Gingerbread)

Change-Id: I2194f6538ec964e175f6eeabfce86939d52a7348
parent 2a9cbc29
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);