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
This commit is contained in:
Katz Yamada 2017-08-02 16:20:41 -07:00 committed by Kevin F. Haggerty
parent a48754615a
commit 23fc0afe5a
No known key found for this signature in database
GPG Key ID: 6D95512933112729

View File

@ -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;
}
}