Add geofence count checking routine 84/42984/1 accepted/tizen/mobile/20150708.020025 accepted/tizen/tv/20150708.020136 submit/tizen_mobile/20150707.222600 submit/tizen_tv/20150707.222550
authorMu-Woong <muwoong.lee@samsung.com>
Mon, 6 Jul 2015 12:52:26 +0000 (21:52 +0900)
committerMu-Woong <muwoong.lee@samsung.com>
Mon, 6 Jul 2015 12:52:26 +0000 (21:52 +0900)
Change-Id: I7ae2d370a15572e82644417dc0e24902f9aad37c
Signed-off-by: Mu-Woong <muwoong.lee@samsung.com>
src/place_geofence/myplace_handle.cpp

index 196e259..7e3cef8 100644 (file)
@@ -211,6 +211,9 @@ void ctx::myplace_handle::emit_state_change()
 
 bool ctx::myplace_handle::fence_list_cb(int geofence_id, geofence_h fence, int fence_index, int fence_cnt, void* user_data)
 {
+       _D("FenceID: %d, Index: %d, Count: %d", geofence_id, fence_index, fence_cnt);
+       IF_FAIL_RETURN(fence_cnt > 0, false);
+
        myplace_handle *handle = reinterpret_cast<myplace_handle*>(user_data);
        return handle->start_fence(geofence_id);
 }