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

Commit fe84f1ae 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 4d1c3d81 57ff612c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -596,7 +596,7 @@ final class A2dpStateMachine extends StateMachine {

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