Revert "[HAM] - change stop and unsetAccumulativePedometerListener functions" 04/107504/1
authorHyunjin Park <hj.na.park@samsung.com>
Wed, 28 Dec 2016 08:55:42 +0000 (00:55 -0800)
committerHyunjin Park <hj.na.park@samsung.com>
Wed, 28 Dec 2016 08:55:42 +0000 (00:55 -0800)
This reverts commit 766df7c791b6fdb912e8cacfe0881ed08843179f.

Change-Id: I149114fee5bdafff262e3d02d6465cf2ca0bd8d3

src/humanactivitymonitor/humanactivitymonitor_api.js

index 0e3dff440e363bd84a6799fa54c40dcc35187aea..2d2d65e1c7172665684ae15ebad506e570a6de32 100755 (executable)
@@ -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;