Bug 725599 - B2G telephony: speakerEnabled does not work; r=philikon

This commit is contained in:
José Antonio Olivera Ortega 2012-02-10 11:27:23 -08:00
parent eb07f876aa
commit 78535c5387

View File

@ -387,7 +387,7 @@ RadioInterfaceLayer.prototype = {
gAudioManager.phoneState = nsIAudioManager.PHONE_STATE_IN_CALL; // XXX why is this needed?
let force = value ? nsIAudioManager.FORCE_SPEAKER :
nsIAudioManager.FORCE_NONE;
gAudioManager.setForceUse(nsIAudioManager.USE_COMMUNICATION, force);
gAudioManager.setForceForUse(nsIAudioManager.USE_COMMUNICATION, force);
},
getNumberOfMessagesForText: function getNumberOfMessagesForText(text) {