fix jira issue N_SE-47006
authorChangyong Jeon <fin10.jeon@samsung.com>
Tue, 23 Jul 2013 11:32:47 +0000 (20:32 +0900)
committerChangyong Jeon <fin10.jeon@samsung.com>
Tue, 23 Jul 2013 11:32:47 +0000 (20:32 +0900)
Change-Id: Ic87cd7ab0a119f561423560ef53ccf4d21938d4b

Installer/src/IstMainFrame.cpp
InstallerService/src/InstallerService.cpp

index f93f0c5..48f37fa 100644 (file)
@@ -120,7 +120,8 @@ MainFrame::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IL
                break;
        case IDA_BUTTON_LAUNCH:
        {
-               AppManager::GetInstance()->LaunchApplication(__mainAppId);
+               result r = AppManager::GetInstance()->LaunchApplication(__mainAppId);
+               AppLogExceptionIf(IsFailed(r), "[%s] Failed to launch application. - %ls", GetErrorMessage(r), __mainAppId.GetPointer());
                break;
        }
        default:
index fc2e1dc..39e9b4c 100644 (file)
@@ -172,6 +172,13 @@ InstallerServiceApp::OnPackageInstallationCompleted(const Tizen::App::PackageId&
        NotificationRequest request;
        result r = request.SetIconFilePath(pMainAppInfo->GetAppMenuIconPath());
        AppLogDebugIf(IsFailed(r), "[%s] Failed to set app icon.", GetErrorMessage(r));
+
+       if (!pMainAppInfo->IsMenuIconVisible())
+       {
+               AppLogDebug("This app hasn't a menu icon.");
+               mainAppId = L"";
+       }
+
        delete pMainAppInfo;
 
        String installTime;
@@ -213,8 +220,16 @@ InstallerServiceApp::OnPackageInstallationCompleted(const Tizen::App::PackageId&
                mainAppId = L"D7eOJquGtL.Installer";
        }
 
-       r = notificationManager.NotifyByAppId(mainAppId, request);
-       AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+       if (mainAppId.IsEmpty())
+       {
+               r = notificationManager.Notify(request);
+               AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+       }
+       else
+       {
+               r = notificationManager.NotifyByAppId(mainAppId, request);
+               AppLogExceptionIf(IsFailed(r), "[%s] Failed to notify message.", GetErrorMessage(r));
+       }
 
        String* pFilePath = null;
        do