mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-27 07:00:31 +00:00
commit
e816e776ae
@ -652,7 +652,7 @@ bool BundleDataMgr::QueryLauncherAbilityInfos(
|
||||
// query all launcher ability
|
||||
for (const auto &item : bundleInfos_) {
|
||||
auto infoWithIdItem = item.second.find(Constants::CURRENT_DEVICE_ID);
|
||||
if (infoWithIdItem->second.IsDisabled()) {
|
||||
if (infoWithIdItem != item.second.end() && infoWithIdItem->second.IsDisabled()) {
|
||||
APP_LOGI("app %{public}s is disabled", infoWithIdItem->second.GetBundleName().c_str());
|
||||
continue;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ const std::string SEPARATOR = "/";
|
||||
bool AddFileContentToZip(zipFile zip_file, FilePath &file_path)
|
||||
{
|
||||
APP_LOGI("%{public}s called", __func__);
|
||||
int num_bytes;
|
||||
uint32_t num_bytes;
|
||||
char buf[kZipBufSize];
|
||||
if (!FilePathCheckValid(file_path.Value())) {
|
||||
APP_LOGI(
|
||||
|
Loading…
Reference in New Issue
Block a user