From 488cca0ae09327b45670ecfca87aa36ac749ad73 Mon Sep 17 00:00:00 2001 From: Rafal Walczyna Date: Thu, 21 Nov 2019 09:31:42 +0100 Subject: [PATCH] [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 --- src/mediacontroller/mediacontroller_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }; -- 2.7.4