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;