Loading android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +6 −1 Original line number Diff line number Diff line Loading @@ -857,6 +857,10 @@ final class HeadsetStateMachine extends StateMachine { case CONNECT_AUDIO: { BluetoothDevice device = mCurrentDevice; if (!isScoAcceptable()) { Log.w(TAG,"No Active/Held call, MO call setup, not allowing SCO"); break; } // TODO(BT) when failure, broadcast audio connecting to disconnected intent // check if device matches mCurrentDevice if (mActiveScoDevice != null) { Loading Loading @@ -3299,7 +3303,8 @@ final class HeadsetStateMachine extends StateMachine { private boolean isInCall() { return ((mPhoneState.getNumActiveCall() > 0) || (mPhoneState.getNumHeldCall() > 0) || (mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE)); ((mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE) && (mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_INCOMING))); } // Accept incoming SCO only when there is active call, VR activated, Loading Loading
android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +6 −1 Original line number Diff line number Diff line Loading @@ -857,6 +857,10 @@ final class HeadsetStateMachine extends StateMachine { case CONNECT_AUDIO: { BluetoothDevice device = mCurrentDevice; if (!isScoAcceptable()) { Log.w(TAG,"No Active/Held call, MO call setup, not allowing SCO"); break; } // TODO(BT) when failure, broadcast audio connecting to disconnected intent // check if device matches mCurrentDevice if (mActiveScoDevice != null) { Loading Loading @@ -3299,7 +3303,8 @@ final class HeadsetStateMachine extends StateMachine { private boolean isInCall() { return ((mPhoneState.getNumActiveCall() > 0) || (mPhoneState.getNumHeldCall() > 0) || (mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE)); ((mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE) && (mPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_INCOMING))); } // Accept incoming SCO only when there is active call, VR activated, Loading