From: saerome.kim Date: Wed, 13 Nov 2019 05:24:50 +0000 (+0900) Subject: Fix the problem that sensor_status_changed_cb is not called X-Git-Tag: submit/tizen/20191115.102151~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc3c194ecdeb7a4b447b8266bb7093f4b3aedda1;p=platform%2Fcore%2Fapi%2Fuser-awareness.git Fix the problem that sensor_status_changed_cb is not called - problem: when only PRESENCE detectoin enabled, sensor_status_change_cb is not called - cause: Check the internal flag that must be set before the sensor_status_change_cb is called. But the internal flag is set only if ABSENCE detection invoked. - Solution: remove the internal flag. Change-Id: I7d320596a4c9580b17a1d4bb9b7d6065b169b80e Signed-off-by: saerome.kim --- diff --git a/packaging/capi-network-ua.spec b/packaging/capi-network-ua.spec index 970dfda..1701230 100644 --- a/packaging/capi-network-ua.spec +++ b/packaging/capi-network-ua.spec @@ -1,6 +1,6 @@ Name: capi-network-ua Summary: User Awareness Framework CAPI -Version: 0.12.14 +Version: 0.12.15 Release: 1 License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/user-awareness-monitors.c b/src/user-awareness-monitors.c index 8ef4b88..6123708 100644 --- a/src/user-awareness-monitors.c +++ b/src/user-awareness-monitors.c @@ -1030,9 +1030,7 @@ void _ua_monitor_handle_sensor_status_changed(uam_sensor_info_s *info) continue; } - if (!monitor->internal_presence_started || - (!monitor->presence_detection_started && - !monitor->internal_presence_started)) { + if (!monitor->presence_detection_started) { UA_WARN("skip!! because detection does not start [%x]", monitor->sensor_bitmask); continue;