From: SeungWon Lee Date: Tue, 19 Feb 2013 07:19:34 +0000 (+0900) Subject: Fix: Exception occured on normal operations. X-Git-Tag: accepted/tizen_2.1/20130425.034720~82^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=633528dc02feb3120ab4608678d1657ca25b09fd;p=platform%2Fframework%2Fnative%2Fshell.git Fix: Exception occured on normal operations. Change-Id: I639ff5be15fd7b09bc0dc5b40d9991cad844170d Signed-off-by: SeungWon Lee --- diff --git a/src/inc/FShell_NotificationManagerEventParamTraits.h b/src/inc/FShell_NotificationManagerEventParamTraits.h index fe32676..2a09d26 100644 --- a/src/inc/FShell_NotificationManagerEventParamTraits.h +++ b/src/inc/FShell_NotificationManagerEventParamTraits.h @@ -96,16 +96,34 @@ struct ParamTraits Tizen::Shell::NotificationRequest notimessage; - notimessage.SetAlertText(alertText); + if (!alertText.IsEmpty()) + { + notimessage.SetAlertText(alertText); + } notimessage.SetAppMessage(appMessage); notimessage.SetTitleText(titleText); - notimessage.SetIconFilePath(iconFilePath); - notimessage.SetSoundFilePath(soundFilePath); + if (!iconFilePath.IsEmpty()) + { + notimessage.SetIconFilePath(iconFilePath); + } + if (!soundFilePath.IsEmpty()) + { + notimessage.SetSoundFilePath(soundFilePath); + } - notimessage.SetBadgeNumber(badgeNo); - notimessage.SetBadgeOffset(badgeOffset); + if (badgeNo >= 0) + { + notimessage.SetBadgeNumber(badgeNo); + } + if (badgeOffset >= 0) + { + notimessage.SetBadgeOffset(badgeOffset); + } notimessage.SetOngoingActivityType((Tizen::Shell::OngoingActivityType)activityType); - notimessage.SetOngoingActivityProgress(progressValue); + if (progressValue >= 0) + { + notimessage.SetOngoingActivityProgress(progressValue); + } *r = notimessage;