File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 2727import org .schabi .newpipe .util .image .ImageStrategy ;
2828import org .schabi .newpipe .util .image .PreferredImageQuality ;
2929
30- import java .io .File ;
3130import java .io .IOException ;
3231import java .io .InterruptedIOException ;
3332import java .net .SocketException ;
3635
3736import coil .ImageLoader ;
3837import coil .ImageLoaderFactory ;
39- import coil .disk .DiskCache ;
40- import coil .memory .MemoryCache ;
4138import coil .util .DebugLogger ;
4239import io .reactivex .rxjava3 .exceptions .CompositeException ;
4340import io .reactivex .rxjava3 .exceptions .MissingBackpressureException ;
@@ -126,13 +123,6 @@ public void onCreate() {
126123 @ Override
127124 public ImageLoader newImageLoader () {
128125 return new ImageLoader .Builder (this )
129- .memoryCache (() -> new MemoryCache .Builder (this )
130- .maxSizeBytes (10 * 1024 * 1024 )
131- .build ())
132- .diskCache (() -> new DiskCache .Builder ()
133- .directory (new File (getExternalCacheDir (), "coil" ))
134- .maxSizeBytes (50 * 1024 * 1024 )
135- .build ())
136126 .allowRgb565 (ContextCompat .getSystemService (this , ActivityManager .class )
137127 .isLowRamDevice ())
138128 .logger (BuildConfig .DEBUG ? new DebugLogger () : null )
You can’t perform that action at this time.
0 commit comments