Fix logging two call records for emergency call
When making one emergency call, the lower layer may return unspecific error, so that Telecom continues performing the call in next phone account. Due logging the call record is later than changing the call state, so the phone account is replaced with next phone account before recording the call log for previous phone account. After retry, even Telephony redirects phone to same phone object, but actually Telecom also records two call logs for different phone account. To fix it, when continuing to try emergency call in next phone account, do not trigger callback for call state change to avoid logging an incorrect call record, also avoid abandoning audio focus. Bug: 67567571 Change-Id: I53675173548b7320735cd8e7d60e2564bf97c124
Loading
Please register or sign in to comment