Change-Id: I61286b34bcccaf43d44fdd0b7a50e8cc2b717de6
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
{name: 'type', type: types_.ENUM, values: Object.keys(HumanActivityType)}
]);
- stopListener('HumanActivityMonitor_' + args.type,
- 'HumanActivityMonitorManager_stop',
- { type: args.type });
+ if (!pedometerListener || !accumulativePedometerListener) {
+ stopListener('HumanActivityMonitor_' + args.type,
+ 'HumanActivityMonitorManager_stop',
+ { type: args.type });
+ }
if (HumanActivityType.PEDOMETER === args.type) {
pedometerListener = null;