diff options
author | paweldomas <pawel.domas@jitsi.org> | 2013-07-18 12:37:24 +0200 |
---|---|---|
committer | paweldomas <pawel.domas@jitsi.org> | 2013-07-18 12:37:24 +0200 |
commit | b9f552e690c543de99e7461f9aa1681a7f9ca819 (patch) | |
tree | 787193ef6a0060bd3fa79505ecf500492cd33b5f /src/net/java/sip/communicator/service | |
parent | 82c41a77473887421350e6dcf81497acf0ec6917 (diff) | |
download | jitsi-b9f552e690c543de99e7461f9aa1681a7f9ca819.zip jitsi-b9f552e690c543de99e7461f9aa1681a7f9ca819.tar.gz jitsi-b9f552e690c543de99e7461f9aa1681a7f9ca819.tar.bz2 |
Fixes ClassCastException on Android in AbstractSystrayService.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/systray/AbstractSystrayService.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/systray/AbstractSystrayService.java b/src/net/java/sip/communicator/service/systray/AbstractSystrayService.java index 29e8858..24bc676 100644 --- a/src/net/java/sip/communicator/service/systray/AbstractSystrayService.java +++ b/src/net/java/sip/communicator/service/systray/AbstractSystrayService.java @@ -295,6 +295,13 @@ public abstract class AbstractSystrayService { try { + Object service + = bundleContext.getService( + serviceEvent.getServiceReference()); + // Event filters don't work on Android + if(!(service instanceof PopupMessageHandler)) + return; + PopupMessageHandler handler = (PopupMessageHandler) bundleContext .getService(serviceEvent.getServiceReference()); |