summaryrefslogtreecommitdiff
path: root/batching/BatchingAdapter.cpp
diff options
context:
space:
mode:
authorSaurabh Srivastava <ssrivast@codeaurora.org>2021-04-28 15:47:20 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2021-07-08 01:58:02 -0700
commitdb4c55e4becbe562f045101b98d45d9bf644508a (patch)
tree595a8aadff13fb0d2b7ee08e4c65b958270ad798 /batching/BatchingAdapter.cpp
parenta10ad89300be5935429ba0545d13085467501731 (diff)
BatchingAdapter to handle engine up after init
Change-Id: I40eff9342215e3080557efda6b256655f1f75c3f CRs-Fixed: 2924711
Diffstat (limited to 'batching/BatchingAdapter.cpp')
-rw-r--r--batching/BatchingAdapter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/batching/BatchingAdapter.cpp b/batching/BatchingAdapter.cpp
index d9f7945..4f1a43c 100644
--- a/batching/BatchingAdapter.cpp
+++ b/batching/BatchingAdapter.cpp
@@ -37,7 +37,9 @@
using namespace loc_core;
BatchingAdapter::BatchingAdapter() :
- LocAdapterBase(0, LocContext::getLocContext(LocContext::mLocationHalName)),
+ LocAdapterBase(0,
+ LocContext::getLocContext(LocContext::mLocationHalName),
+ false, nullptr, true),
mOngoingTripDistance(0),
mOngoingTripTBFInterval(0),
mTripWithOngoingTBFDropped(false),
@@ -50,6 +52,10 @@ BatchingAdapter::BatchingAdapter() :
LOC_LOGD("%s]: Constructor", __func__);
readConfigCommand();
setConfigCommand();
+
+ // at last step, let us inform adapater base that we are done
+ // with initialization, e.g.: ready to process handleEngineUpEvent
+ doneInit();
}
void