mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-23 06:50:03 +00:00
update services/location_locator/locator/source/locator_background_proxy.cpp.
Signed-off-by: smilebear <245252081@qq.com>
This commit is contained in:
parent
30d50d374e
commit
7289d16c6b
@ -393,12 +393,12 @@ bool LocatorBackgroundProxy::IsAppBackground(std::string bundleName)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LocatorBackgroundProxy::IsAppBackground(int uid)
|
||||
bool LocatorBackgroundProxy::IsAppBackground(int uid, std::string bundleName)
|
||||
{
|
||||
std::unique_lock lock(backgroundAppMutex_);
|
||||
auto iter = backgroundAppMap_.find(uid);
|
||||
if (iter == backgroundAppMap_.end()) {
|
||||
return false;
|
||||
return IsAppBackground(bundleName);
|
||||
}
|
||||
int32_t status = iter->second;
|
||||
if (status == BACKGROUNDAPP_STATUS) {
|
||||
|
Loading…
Reference in New Issue
Block a user