Loads Jabber icons through resources service

Uses getImageInputStreamForPath of resources service to load the image
data instead of classloader. Change required for Android resources
implementation.
cusax-fix
paweldomas 13 years ago
parent 9b0d7d1b12
commit 5da6a05e61

@ -11,6 +11,7 @@
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.util.*;
import org.jitsi.service.resources.*;
/**
* The <tt>JabberStatusEnum</tt> gives access to presence states for the Sip
@ -327,7 +328,11 @@ private static InputStream getResourceAsStream(String name, Class<?> clazz)
*/
}
}
return clazz.getClassLoader().getResourceAsStream(name);
ResourceManagementService resourcesService
= ProtocolProviderActivator.getResourceService();
return resourcesService.getImageInputStreamForPath(name);
}
/**

Loading…
Cancel
Save