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

Commit 94dd6410 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "A2dp: Check the value of mConnectionState in isConnected"

parents 880b977a ca90765c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -596,7 +596,7 @@ final class A2dpStateMachine extends StateMachine {


    boolean isConnected() {
    boolean isConnected() {
        synchronized (this) {
        synchronized (this) {
            return (getCurrentState() == mConnected);
            return (getConnectionState() == BluetoothProfile.STATE_CONNECTED);
        }
        }
    }
    }