Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix occasional completely mute incoming call
- when PHONE_INCOMING_RING message accidentaly arrives to CallNotifier immediately after the user answers the call, the call state is still RINGING instead of OFFHOOK, so ring plays again, causing audio driver to switch from just entered IN_CALL mode back to RINGING mode, which can lead to completely mute phone call - no side of call can be heard - prevent this scenario by calling silenceRinger() instead of stopRing() at the beginning of answerCall(), so not only the current ring is stopped, but also the possible next ring prevented Change-Id: I8013eaab6dca08041f5e1a701ba56e09ef460f43
- Loading branch information