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

Commit f76c38bd authored by Jack He's avatar Jack He Committed by Gerrit Code Review
Browse files

Merge "Return correct result of Bluetooth HID device app registration"

parents 49f7ef61 8d337a1a
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()));
            }