Bug 836168 - B2G RIL: update audioPhoneState when rejecting an incoming call. r=allstars.chh

This commit is contained in:
Hsin-Yi Tsai 2013-01-30 11:16:31 +08:00
parent 13aeaa3cca
commit c6f64baff4

View File

@ -1237,8 +1237,12 @@ RadioInterfaceLayer.prototype = {
call.isActive = false;
if (this._activeCall &&
this._activeCall.callIndex == call.callIndex) {
// Previously active call is not active now. Disable audio.
// Previously active call is not active now.
this._activeCall = null;
}
if (!this._activeCall) {
// No active call. Disable the audio.
gAudioManager.phoneState = nsIAudioManager.PHONE_STATE_NORMAL;
debug("No active call, put audio system into PHONE_STATE_NORMAL: "
+ gAudioManager.phoneState);