From: Rafal Walczyna Date: Thu, 21 Nov 2019 08:31:42 +0000 (+0100) Subject: [MediaController] Fix removing invalid listener X-Git-Tag: accepted/tizen/unified/20191122.122403~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=488cca0ae09327b45670ecfca87aa36ac749ad73;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [MediaController] Fix removing invalid listener CommandListener was removed instead of ChangeRequestPlaybackInfoListener. It was impossible to add ChangeRequestPlaybackInfoListener again. Verification: tct passrate 100%. Tested in GoogleChrome console on TM1 and KantM2. Change-Id: Iefec897b80c611421c9a7592df571ffe75588576 Signed-off-by: Rafal Walczyna --- diff --git a/src/mediacontroller/mediacontroller_api.js b/src/mediacontroller/mediacontroller_api.js index 2f53dd2..50b767f 100755 --- a/src/mediacontroller/mediacontroller_api.js +++ b/src/mediacontroller/mediacontroller_api.js @@ -2451,7 +2451,7 @@ MediaControllerServer.prototype.removeChangeRequestPlaybackInfoListener = functi ServerPlaybackInfoListener.removeListener(args.watchId); if (type_.isEmptyObject(ServerPlaybackInfoListener.listeners)) { - native_.callSync('MediaControllerServerRemoveCommandListener'); + native_.callSync('MediaControllerServerRemoveChangeRequestPlaybackInfoListener'); } };