From 23fc0afe5aeffcc15b0f926b7062b6cefe287205 Mon Sep 17 00:00:00 2001 From: Katz Yamada Date: Wed, 2 Aug 2017 16:20:41 -0700 Subject: [PATCH] msm8974-common: gps: Fix unable to clear existing event bitmasks Fix for an issue updateEvtMask call chain is unable to clear existing event bitmasks stored in LocApiV02. Change-Id: Id34e2d92a506e7300f3d9b3ec74a80a1f6822787 CRs-Fixed: 2085379 --- gps/core/LocApiBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps/core/LocApiBase.cpp b/gps/core/LocApiBase.cpp index 1278155..0550764 100644 --- a/gps/core/LocApiBase.cpp +++ b/gps/core/LocApiBase.cpp @@ -162,7 +162,7 @@ void LocApiBase::addAdapter(LocAdapterBase* adapter) if (mLocAdapters[i] == NULL) { mLocAdapters[i] = adapter; mMsgTask->sendMsg(new LocOpenMsg(this, - (adapter->getEvtMask()))); + mMask | adapter->getEvtMask())); break; } }