Fixed livbox list
authorHeeJu Kang <mobum.kang@samsung.com>
Thu, 3 Jan 2013 02:25:21 +0000 (11:25 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Thu, 3 Jan 2013 02:25:21 +0000 (11:25 +0900)
Change-Id: Ie47b3db8163d23367caabf2d701b5f9bd2eec664
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_LiveboxManagerImpl.cpp

index 346cc32..dfef883 100644 (file)
@@ -167,10 +167,24 @@ _LiveboxManagerImpl::GetLiveboxProviderInfoListN()
 
        pLiveboxProviders->Construct();
        int ret = livebox_service_get_pkglist(GetLiveboxProviderInfoCallback, pLiveboxProviders.get());
-       SysTryReturn(NID_APP, ret >= 0, null, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
+       if (ret < 0)
+       {
+               SysLog(NID_APP, "Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
+       }
+
+//     SysTryReturn(NID_APP, ret >= 0, null, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
 
        ret = shortcut_get_list(null, GetConfigurableLiveboxInfosCallback,  pLiveboxProviders.get());
-       SysTryReturn(NID_APP, ret >= 0, null, E_SYSTEM, "[E_SYSTEM] Failed to invoke shortcut_get_list, ret (%d)", ret);
+       if (ret < 0)
+       {
+               SysLog(NID_APP, "Failed to invoke shortcut_get_list, ret (%d)", ret);
+       }
+//     SysTryReturn(NID_APP, ret >= 0, null, E_SYSTEM, "[E_SYSTEM] Failed to invoke shortcut_get_list, ret (%d)", ret);
+
+       if (pLiveboxProviders->GetCount() <= 0)
+       {
+               return null;
+       }
 
        return pLiveboxProviders.release();
 }