diff options
author | Vincent Lucas <chenzo@jitsi.org> | 2012-04-23 13:22:18 +0000 |
---|---|---|
committer | Vincent Lucas <chenzo@jitsi.org> | 2012-04-23 13:22:18 +0000 |
commit | 9a0572e7f2485ebcfe4079b5cc4187acd5a4c9f6 (patch) | |
tree | 9506b9fdd56342f39245a76d9236c8ff3d7c3584 /src/net | |
parent | 4e8a4ea55e98494b92c1fc7ac4425455360fdaed (diff) | |
download | jitsi-9a0572e7f2485ebcfe4079b5cc4187acd5a4c9f6.zip jitsi-9a0572e7f2485ebcfe4079b5cc4187acd5a4c9f6.tar.gz jitsi-9a0572e7f2485ebcfe4079b5cc4187acd5a4c9f6.tar.bz2 |
Corrects sound event loop when setting a custom sound file.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java b/src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java index 76c0fd1..bfaeb79 100644 --- a/src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java +++ b/src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java @@ -149,8 +149,14 @@ class NotificationServiceImpl if (actionType.equals(ACTION_SOUND)) { - registerNotificationForEvent (eventType, - new SoundNotificationAction(actionDescriptor, -1)); + Notification notification = defaultNotifications.get(eventType); + SoundNotificationAction action = + (SoundNotificationAction) notification.getAction(ACTION_SOUND); + registerNotificationForEvent ( + eventType, + new SoundNotificationAction( + actionDescriptor, + action.getLoopInterval())); } else if (actionType.equals(ACTION_LOG_MESSAGE)) { |