package subreddit.android.appstore.util.ui.glide;

import android.content.Context;

import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.Registry;
import com.bumptech.glide.module.GlideModule;

import java.io.InputStream;

import subreddit.android.appstore.AppStoreApp;


public class GlideConfigModule implements GlideModule {

    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
//        builder.setDefaultRequestOptions(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.NONE));
    }

    @Override
    public void registerComponents(Context context, Registry registry) {
        registry.append(
                IconRequest.class,
                InputStream.class,
                new IconRequestModelLoader.Factory(
                        AppStoreApp.Injector.INSTANCE.getAppComponent().mediaScraper()
                )
        );
    }
}

@@ -77,16 +77,49 @@
 ntext;%0A%0A
+import com.bumptech.glide.Glide;%0A
 import c
@@ -628,16 +628,29 @@
 context,
+ Glide glide,
  Registr

Update GlideModule implementation (#105)