X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fapp%2FFApp_NotificationManagerImpl.cpp;h=cbd7a03af335be9c3153b41b361f317f3981348d;hb=90d6b0cce885a4627eb6afa0d01db4d2ee6dbe0f;hp=d4579beea01f284b3866d8ef94629c2ee0ebe4e3;hpb=14d834f0be3f15e72e1351b6a1d6debd7c7657ee;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/src/app/FApp_NotificationManagerImpl.cpp b/src/app/FApp_NotificationManagerImpl.cpp index d4579be..cbd7a03 100644 --- a/src/app/FApp_NotificationManagerImpl.cpp +++ b/src/app/FApp_NotificationManagerImpl.cpp @@ -83,7 +83,13 @@ _NotificationManagerImpl::GetBadgeNumber(void) const { SysTryReturn(NID_APP, __pNotiImpl != null, -1, E_SYSTEM, "[E_SYSTEM] Notification interface error."); - return __pNotiImpl->GetBadgeNumber(); + int res = __pNotiImpl->GetBadgeNumber(); + if (GetLastResult() == E_OPERATION_FAILED) + { + SetLastResult(E_SUCCESS); + return -1; + } + return res; } @@ -145,6 +151,11 @@ _NotificationManagerImpl::GetBadgeNumber(const AppId& appId) const SetLastResult(E_OBJ_NOT_FOUND); } + if (GetLastResult() == E_OPERATION_FAILED) + { + SetLastResult(E_SUCCESS); + return -1; + } return ret; } @@ -211,7 +222,7 @@ _NotificationManagerImpl::NotifyOngoingActivity(const String& messageText) const { SysTryReturnResult(NID_APP, __pNotiImpl != null, E_SYSTEM, "Notification interface error."); - return __pNotiImpl->NotifyOngoingActivity(messageText, String(L"")); + return __pNotiImpl->NotifyOngoingActivity(messageText); }