aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/notification
diff options
context:
space:
mode:
authorVincent Lucas <chenzo@jitsi.org>2012-04-23 13:22:18 +0000
committerVincent Lucas <chenzo@jitsi.org>2012-04-23 13:22:18 +0000
commit9a0572e7f2485ebcfe4079b5cc4187acd5a4c9f6 (patch)
tree9506b9fdd56342f39245a76d9236c8ff3d7c3584 /src/net/java/sip/communicator/service/notification
parent4e8a4ea55e98494b92c1fc7ac4425455360fdaed (diff)
downloadjitsi-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/java/sip/communicator/service/notification')
-rw-r--r--src/net/java/sip/communicator/service/notification/NotificationServiceImpl.java10
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))
{