|
@@ -0,0 +1,21 @@
|
|
|
+package eu.kanade.mangafeed.data.cache;
|
|
|
+
|
|
|
+import android.content.Context;
|
|
|
+
|
|
|
+import com.bumptech.glide.Glide;
|
|
|
+import com.bumptech.glide.GlideBuilder;
|
|
|
+import com.bumptech.glide.load.DecodeFormat;
|
|
|
+import com.bumptech.glide.module.GlideModule;
|
|
|
+
|
|
|
+public class CoverGlideModule implements GlideModule {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void applyOptions(Context context, GlideBuilder builder) {
|
|
|
+ builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void registerComponents(Context context, Glide glide) {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|