From: Hyunjin Park Date: Wed, 28 Dec 2016 08:55:42 +0000 (-0800) Subject: Revert "[HAM] - change stop and unsetAccumulativePedometerListener functions" X-Git-Tag: submit/tizen_3.0/20161228.093825~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07625fed714ee2553e740b7b5bd103b4bebb4a73;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git Revert "[HAM] - change stop and unsetAccumulativePedometerListener functions" This reverts commit 766df7c791b6fdb912e8cacfe0881ed08843179f. Change-Id: I149114fee5bdafff262e3d02d6465cf2ca0bd8d3 --- diff --git a/src/humanactivitymonitor/humanactivitymonitor_api.js b/src/humanactivitymonitor/humanactivitymonitor_api.js index 0e3dff44..2d2d65e1 100755 --- a/src/humanactivitymonitor/humanactivitymonitor_api.js +++ b/src/humanactivitymonitor/humanactivitymonitor_api.js @@ -354,11 +354,9 @@ HumanActivityMonitorManager.prototype.stop = function(type) { {name: 'type', type: types_.ENUM, values: Object.keys(HumanActivityType)} ]); - if (!pedometerListener || !accumulativePedometerListener) { - stopListener('HumanActivityMonitor_' + args.type, - 'HumanActivityMonitorManager_stop', - { type: args.type }); - } + stopListener('HumanActivityMonitor_' + args.type, + 'HumanActivityMonitorManager_stop', + { type: args.type }); if (HumanActivityType.PEDOMETER === args.type) { pedometerListener = null;