From 2a826fd561edfdf1109c785a799b798d2b6c37ac Mon Sep 17 00:00:00 2001
From: Piotr Kosko
Date: Wed, 17 Jan 2018 12:52:50 +0100
Subject: [PATCH] [HAM] Added missing conversion of alwaysOn parameter
[Verification] TCT passrate on Solis binary increased, some TCT issues left,
but webapi code seems to be valid now.
Change-Id: I7f5e1cd4ff7ea8f3a9f141f46794afc3a4789f06
Signed-off-by: Piotr Kosko
---
src/humanactivitymonitor/humanactivitymonitor_api.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/humanactivitymonitor/humanactivitymonitor_api.js b/src/humanactivitymonitor/humanactivitymonitor_api.js
index 7b3a8f7..691b953 100755
--- a/src/humanactivitymonitor/humanactivitymonitor_api.js
+++ b/src/humanactivitymonitor/humanactivitymonitor_api.js
@@ -590,7 +590,7 @@ GestureListenerManager.prototype.onListenerCalled = function(msg) {
GestureListenerManager.prototype.addListener = function(successCb, errorCb, type, alwaysOn) {
var listener = {
'type' : type,
- 'alwaysOn' : alwaysOn,
+ 'alwaysOn' : converter_.toBoolean(alwaysOn),
'ondetect' : successCb,
'onerror' : errorCb
};
--
2.7.4