"allow_add_call_during_video_cal" doesn't work when answer incoming call

Carrier config "allow_add_call_during_video_cal"
(CarrierConfigManager#KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL) is
controlling updating Connection#EXTRA_DISABLE_ADD_CALL in Connection.

When creating the connection or receiving video state change,
Connection#EXTRA_DISABLE_ADD_CALL is set to true if the foreground call
is video. However, it doesn't set when answer the incoming video call
case. Because the incoming call is not include in the foreground call,
and there is not an opportunity to update it after the call state
transitions from incoming to active(foreground).
To fix this, update Connection#EXTRA_DISABLE_ADD_CALL when the call
state is changed.

Test: manual - Checked that add call is rejected during on-going video
call if allow_add_call_during_video_call is false.
Bug: 69724188

Change-Id: If2adc42eb94f211f8859dbd2ad6c9d0e7bfbbc7f
1 file changed