Loading src/com/android/bluetooth/a2dpsink/A2dpSinkStateMachine.java +4 −2 Original line number Diff line number Diff line Loading @@ -175,6 +175,7 @@ public class A2dpSinkStateMachine extends StateMachine { + " turned off for " + mDevice); mService.disconnectA2dpNative(mDeviceAddress); } else { mConnecting.mIncomingConnection = true; transitionTo(mConnecting); } break; Loading @@ -190,7 +191,7 @@ public class A2dpSinkStateMachine extends StateMachine { } class Connecting extends State { boolean mIncommingConnection = false; boolean mIncomingConnection = false; @Override public void enter() { Loading @@ -198,7 +199,7 @@ public class A2dpSinkStateMachine extends StateMachine { onConnectionStateChanged(BluetoothProfile.STATE_CONNECTING); sendMessageDelayed(CONNECT_TIMEOUT, CONNECT_TIMEOUT_MS); if (!mIncommingConnection) { if (!mIncomingConnection) { mService.connectA2dpNative(mDeviceAddress); } Loading Loading @@ -234,6 +235,7 @@ public class A2dpSinkStateMachine extends StateMachine { @Override public void exit() { removeMessages(CONNECT_TIMEOUT); mIncomingConnection = false; } } Loading Loading
src/com/android/bluetooth/a2dpsink/A2dpSinkStateMachine.java +4 −2 Original line number Diff line number Diff line Loading @@ -175,6 +175,7 @@ public class A2dpSinkStateMachine extends StateMachine { + " turned off for " + mDevice); mService.disconnectA2dpNative(mDeviceAddress); } else { mConnecting.mIncomingConnection = true; transitionTo(mConnecting); } break; Loading @@ -190,7 +191,7 @@ public class A2dpSinkStateMachine extends StateMachine { } class Connecting extends State { boolean mIncommingConnection = false; boolean mIncomingConnection = false; @Override public void enter() { Loading @@ -198,7 +199,7 @@ public class A2dpSinkStateMachine extends StateMachine { onConnectionStateChanged(BluetoothProfile.STATE_CONNECTING); sendMessageDelayed(CONNECT_TIMEOUT, CONNECT_TIMEOUT_MS); if (!mIncommingConnection) { if (!mIncomingConnection) { mService.connectA2dpNative(mDeviceAddress); } Loading Loading @@ -234,6 +235,7 @@ public class A2dpSinkStateMachine extends StateMachine { @Override public void exit() { removeMessages(CONNECT_TIMEOUT); mIncomingConnection = false; } } Loading