diff options
2 files changed, 8 insertions, 3 deletions
diff --git a/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationProgressBinder.cs b/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationProgressBinder.cs index adc0ab4..6afd5c5 100755 --- a/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationProgressBinder.cs +++ b/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationProgressBinder.cs @@ -23,20 +23,22 @@ namespace Tizen.Applications.Notifications double current, max; Notification.ProgressType progress = notification.Progress; - Interop.Notification.SetProgressType(notification.Handle, progress.Category); if (progress.Category == ProgressCategory.PendingBar) { + Interop.Notification.SetProgressType(notification.Handle, ProgressCategory.Percent); current = 0; max = 0; } else if (progress.Category == ProgressCategory.Percent) { + Interop.Notification.SetProgressType(notification.Handle, progress.Category); current = progress.ProgressCurrent / 100; max = progress.ProgressMax; } else { + Interop.Notification.SetProgressType(notification.Handle, progress.Category); current = progress.ProgressCurrent; max = progress.ProgressMax; } @@ -70,4 +72,4 @@ namespace Tizen.Applications.Notifications } } } -}
\ No newline at end of file +} diff --git a/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationProgressArgsBinder.cs b/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationProgressArgsBinder.cs index 2eca359..8611503 100755 --- a/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationProgressArgsBinder.cs +++ b/Tizen.Applications.NotificationEventListener/Tizen.Applications.NotificationEventListener/NotificationProgressArgsBinder.cs @@ -35,6 +35,9 @@ namespace Tizen.Applications.NotificationEventListener if (category == ProgressCategory.Percent) { current *= 100; + + if (current == 0 && max == 0) + category = ProgressCategory.PendingBar; } eventargs.Progress = new NotificationEventArgs.ProgressArgs(); @@ -44,4 +47,4 @@ namespace Tizen.Applications.NotificationEventListener } } } -}
\ No newline at end of file +} |