updated appid installation issue with _Aul::IsInstalled(appid) API
authorJiban Prakash <p.jiban@samsung.com>
Wed, 16 Jan 2013 14:06:54 +0000 (19:36 +0530)
committerJiban Prakash <p.jiban@samsung.com>
Wed, 16 Jan 2013 14:06:54 +0000 (19:36 +0530)
Change-Id: I9f88e2484ae857186fa1fd3a3c23988064354d07
Signed-off-by: Jiban Prakash <p.jiban@samsung.com>
src/core/FShell_NotificationManagerImpl.cpp

index 2b798a7..14b9503 100644 (file)
@@ -36,6 +36,7 @@
 #include <FBaseInternalTypes.h>
 #include <FBase_StringConverter.h>
 #include "FApp_AppInfo.h"
+#include "FApp_Aul.h"
 #include "FAppPkg_PackageManagerImpl.h"
 #include "FApp_AppArg.h"
 #include "FShell_NotificationManagerImpl.h"
@@ -263,8 +264,7 @@ _NotificationManagerImpl::NotifyImpl(const AppId& appId, const String& messageTe
 
        memset(buffer, 0, 256);
 
-       bool b = _PackageManagerImpl::IsAppInstalled(appId);
-
+       bool b = _Aul::IsInstalled(appId);
        SysTryReturnResult(NID_APP, b == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", appId.GetPointer());
 
        if (isOngoing || !messageText.IsEmpty())
@@ -580,8 +580,7 @@ _NotificationManagerImpl::Notify(const String& messageText, int badgeNumber, con
 int
 _NotificationManagerImpl::GetBadgeNumber(const AppId& appId) const
 {
-       bool b = _PackageManagerImpl::IsAppInstalled(appId);
-
+       bool b = _Aul::IsInstalled(appId);
        SysTryReturn(NID_APP, b == true, -1, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] The application %ls is not installed",
                                appId.GetPointer());