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

This commit is contained in:
Hsin-Yi Tsai 2013-01-30 11:16:31 +08:00
Родитель e2abfafb7d
Коммит de6a8e9191
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1222,8 +1222,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);