mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-01 16:32:08 +01:00
core: use addCompressionHandler() instead directly adding to the list
This commit is contained in:
parent
eaa94be7e6
commit
5579567572
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ public final class SmackInitialization {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the Java7 compression handler first, since it's preferred
|
// Add the Java7 compression handler first, since it's preferred
|
||||||
SmackConfiguration.compressionHandlers.add(new Java7ZlibInputOutputStream());
|
SmackConfiguration.addCompressionHandler(new Java7ZlibInputOutputStream());
|
||||||
|
|
||||||
XmppCompressionManager.registerXmppCompressionFactory(ZlibXmppCompressionFactory.INSTANCE);
|
XmppCompressionManager.registerXmppCompressionFactory(ZlibXmppCompressionFactory.INSTANCE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue