diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-10-18 10:38:00 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-10-18 10:38:00 +0000 |
commit | 93aeb79acfee9f44297acc7e2e6ca1abb97d19dd (patch) | |
tree | 2d0eda9e0bc195a2b0ffad8558929771f224b83b /src/net/java/sip/communicator/impl/notification/NotificationActivator.java | |
parent | 9d2858020d94b6f4051c18e4f01a38f6abaa5a4b (diff) | |
download | jitsi-93aeb79acfee9f44297acc7e2e6ca1abb97d19dd.zip jitsi-93aeb79acfee9f44297acc7e2e6ca1abb97d19dd.tar.gz jitsi-93aeb79acfee9f44297acc7e2e6ca1abb97d19dd.tar.bz2 |
A hack fixing problem with playing notifications during the ongoing call.
Diffstat (limited to 'src/net/java/sip/communicator/impl/notification/NotificationActivator.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/notification/NotificationActivator.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java index a7d94bd..7cd65c3 100644 --- a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java +++ b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java @@ -6,6 +6,7 @@ */ package net.java.sip.communicator.impl.notification; +import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.service.notification.*; import net.java.sip.communicator.service.systray.*; import net.java.sip.communicator.util.*; @@ -31,6 +32,11 @@ public class NotificationActivator private static SystrayService systrayService; private static NotificationService notificationService; + /** + * A reference to the <tt>UIService</tt> currently in use in Jitsi. + */ + private static UIService uiService = null; + private CommandNotificationHandler commandHandler; private LogMessageNotificationHandler logMessageHandler; private PopupMessageNotificationHandler popupMessageHandler; @@ -125,4 +131,18 @@ public class NotificationActivator return systrayService; } + + /** + * Returns a reference to an UIService implementation currently registered + * in the bundle context or null if no such implementation was found. + * + * @return a reference to an UIService implementation currently registered + * in the bundle context or null if no such implementation was found. + */ + public static UIService getUIService() + { + if(uiService == null) + uiService = ServiceUtils.getService(bundleContext, UIService.class); + return uiService; + } } |