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

Commit 13b32d0a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check if future is true before timing out" into main

parents 86b9d0d4 98e81743
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2625,7 +2625,8 @@ public class InCallController extends CallsManagerListenerBase implements
        IInCallService inCallService = IInCallService.Stub.asInterface(service);
        if (info.getType() == IN_CALL_SERVICE_TYPE_BLUETOOTH) {
            if (!mBtBindingFuture.containsKey(userHandle)
                    || mBtBindingFuture.get(userHandle).isDone()) {
                    || (mBtBindingFuture.get(userHandle).isDone() && !mBtBindingFuture
                    .get(userHandle).getNow(false))) {
                Log.i(this, "onConnected: BT binding future timed out.");
                // Binding completed after the timeout. Clean up this binding
                return false;