#include <FBase_StringConverter.h>
#include "FApp_AppInfo.h"
#include "FApp_Aul.h"
+#include "FIoFile.h"
#include "FAppPkg_PackageManagerImpl.h"
#include "FApp_AppArg.h"
#include "FShell_NotificationManagerImpl.h"
using namespace Tizen::Base;
using namespace Tizen::App;
using namespace Tizen::App::Package;
+using namespace Tizen::Io;
using namespace Tizen::Shell;
extern "C" int service_create_request(bundle *data, service_h *service);
pPackageAppInfo = _PackageManagerImpl::GetInstance()->GetPackageAppInfoN(currappId);
iconPath = _PackageAppInfoImpl::GetInstance(pPackageAppInfo)->GetAppNotificationIconPath();
- if (!iconPath.IsEmpty())
+ if (!iconPath.IsEmpty() && File::IsFileExist(iconPath))
{
pIcon = _StringConverter::CopyToCharArrayN(iconPath);
r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIcon));
pPackageAppInfo = _PackageManagerImpl::GetInstance()->GetPackageAppInfoN(appId);
iconPath = _PackageAppInfoImpl::GetInstance(pPackageAppInfo)->GetAppNotificationIconPath();
- if (!iconPath.IsEmpty())
+ if (!iconPath.IsEmpty() && File::IsFileExist(iconPath))
{
pIcon = _StringConverter::CopyToCharArrayN(iconPath);
r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIcon));
SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title text failed.", GetErrorMessage(r));
}
- if (!iconPath.IsEmpty())
+ if (!iconPath.IsEmpty() )
{
pIconPath = _StringConverter::CopyToCharArrayN(iconPath);
r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath));
appiconPath = _PackageAppInfoImpl::GetInstance(pPackageAppInfo)->GetAppNotificationIconPath();
- if (!iconPath.IsEmpty())
+ if (!appiconPath.IsEmpty() && File::IsFileExist(appiconPath))
{
pIconPath = _StringConverter::CopyToCharArrayN(appiconPath);
r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath));