Fix aul_svc_get_all_defapps_for_uid() function 84/255984/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 26 Mar 2021 02:50:40 +0000 (11:50 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 26 Mar 2021 02:50:40 +0000 (11:50 +0900)
This patch removes the size check of the application list for backward
compatibility.

Change-Id: Ie1e05c48fdf17ce1cac085139b6ced43677ddb29
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_svc.cc

index 00fc4a3..98b5826 100644 (file)
@@ -485,9 +485,6 @@ extern "C" API int aul_svc_get_all_defapps_for_uid(aul_svc_info_iter_fn iter_fn,
 
   tizen_base::Bundle res(response, false, true);
   auto appid_array = res.GetStringArray(AUL_K_APPID_LIST);
-  if (appid_array.size() == 0)
-    return AUL_SVC_RET_ERROR;
-
   for (auto& appid : appid_array) {
     if (iter_fn(appid.c_str(), data) != 0)
       break;