Fix "_APPINFO_PROP_PKG_DISABLE" filter check logic 16/290216/1
authorilho kim <ilho159.kim@samsung.com>
Tue, 21 Mar 2023 11:44:03 +0000 (20:44 +0900)
committerilho kim <ilho159.kim@samsung.com>
Tue, 21 Mar 2023 11:44:03 +0000 (20:44 +0900)
The GetPackageDisableFilterStatus function should check
'PMINFO_APPINFO_PROP_PKG_DISABLE' not 'PMINFO_APPINFO_PROP_APP_DISABLE'

Change-Id: Ia922d73aaf845dbd97d4e7bef28029be4c42df4c
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/server/appinfo_internal.cc

index 01d1879..f56b175 100644 (file)
@@ -398,7 +398,7 @@ PackageDisableFilterStatus GetPackageDisableFilterStatus(
   int property = -1;
 
   property = _pminfo_appinfo_convert_to_prop_bool(
-        PMINFO_APPINFO_PROP_APP_DISABLE);
+        PMINFO_APPINFO_PROP_PKG_DISABLE);
   for (tmp_list = filter->list; tmp_list != nullptr;
       tmp_list = g_slist_next(tmp_list)) {
     tmp_node = reinterpret_cast<pkgmgrinfo_node_x*>(tmp_list->data);