Commit 827ada1b authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Disable SVG support.

parent 52a0d836
...@@ -18,6 +18,11 @@ import okhttp3.OkHttpClient; ...@@ -18,6 +18,11 @@ import okhttp3.OkHttpClient;
public class RocketChatWidgets { public class RocketChatWidgets {
/**
* TODO
* The SVG support (by setImageDecoderConfig method) should be enabled after RC servers are stable.
* Info about that: https://github.com/RocketChat/Rocket.Chat/pull/7572
*/
public static void initialize(Context context, OkHttpClient okHttpClient) { public static void initialize(Context context, OkHttpClient okHttpClient) {
FLog.setMinimumLoggingLevel(FLog.VERBOSE); FLog.setMinimumLoggingLevel(FLog.VERBOSE);
Set<RequestListener> listeners = new HashSet<>(); Set<RequestListener> listeners = new HashSet<>();
...@@ -26,7 +31,7 @@ public class RocketChatWidgets { ...@@ -26,7 +31,7 @@ public class RocketChatWidgets {
ImagePipelineConfig imagePipelineConfig = OkHttpImagePipelineConfigFactory ImagePipelineConfig imagePipelineConfig = OkHttpImagePipelineConfigFactory
.newBuilder(context, okHttpClient) .newBuilder(context, okHttpClient)
.setRequestListeners(listeners) .setRequestListeners(listeners)
.setImageDecoderConfig(CustomImageFormatConfigurator.createImageDecoderConfig()) // .setImageDecoderConfig(CustomImageFormatConfigurator.createImageDecoderConfig())
.setDownsampleEnabled(true) .setDownsampleEnabled(true)
.experiment().setBitmapPrepareToDraw(true) .experiment().setBitmapPrepareToDraw(true)
.experiment().setPartialImageCachingEnabled(true) .experiment().setPartialImageCachingEnabled(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment