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

Commit 8d337a1a authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Return correct result of Bluetooth HID device app registration

A typo in application registeration interface function of Bluetooth HID
Device causes it to always return failure result.

Bug: 189152012
Test: HidDeviceTest.test_hid_host_unplug
Change-Id: I898e58b24b3f2a7bdce9e44e72d675d522d5aab1
parent 983005bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ public final class BluetoothHidDevice implements BluetoothProfile {
                final SynchronousResultReceiver<Boolean> recv = new SynchronousResultReceiver();
                CallbackWrapper cbw = new CallbackWrapper(executor, callback, mAttributionSource);
                service.registerApp(sdp, inQos, outQos, cbw, mAttributionSource, recv);
                result = recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue);
                return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue);
            } catch (RemoteException | TimeoutException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
            }