mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 16:18:55 +01:00 
			
		
		
		
	Cache chapter images from presenter with glide.
This commit is contained in:
		@@ -2,6 +2,9 @@ package eu.kanade.mangafeed.injection.module;
 | 
			
		||||
 | 
			
		||||
import android.app.Application;
 | 
			
		||||
 | 
			
		||||
import com.bumptech.glide.Glide;
 | 
			
		||||
import com.bumptech.glide.RequestManager;
 | 
			
		||||
 | 
			
		||||
import javax.inject.Singleton;
 | 
			
		||||
 | 
			
		||||
import dagger.Module;
 | 
			
		||||
@@ -55,4 +58,10 @@ public class DataModule {
 | 
			
		||||
    SourceManager provideSourceManager(NetworkHelper networkHelper, CacheManager cacheManager) {
 | 
			
		||||
        return new SourceManager(networkHelper, cacheManager);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Provides
 | 
			
		||||
    @Singleton
 | 
			
		||||
    RequestManager provideGlideDownloader(Application app) {
 | 
			
		||||
        return Glide.with(app);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user