From: Pawel Kaczmarek Date: Wed, 11 Feb 2015 07:38:29 +0000 (+0100) Subject: [Sound] setVolumeChangeListener JS fix X-Git-Tag: submit/tizen_mobile/20150603.064609~1^2~461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4de767101e06b0f86333286d5a2f6182a6c7865e;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Sound] setVolumeChangeListener JS fix [Verification] Related TCT should pass Change-Id: Ibe5222620b88f40b122c669b92a0d16924c9c97c Signed-off-by: Pawel Kaczmarek --- diff --git a/src/sound/sound_api.js b/src/sound/sound_api.js index b6a896f..b9301cd 100644 --- a/src/sound/sound_api.js +++ b/src/sound/sound_api.js @@ -102,7 +102,7 @@ SoundManager.prototype.unsetSoundModeChangeListener = function() { var _volumeChangeListener; function _volumeChangeListenerCallback(result) { - native_.callIfPossible(_volumeChangeListener, native_.getResultObject(result)); + native_.callIfPossible(_volumeChangeListener, result.type, result.volume); } SoundManager.prototype.setVolumeChangeListener = function(callback) {