mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-04-27 19:13:53 +08:00
add disk usage limits (total cache size, total files, unlimited) #5
This commit is contained in:
@@ -3,9 +3,7 @@ package com.danikula.videocache.sample;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
import com.danikula.videocache.FileNameGenerator;
|
||||
import com.danikula.videocache.HttpProxyCacheServer;
|
||||
import com.danikula.videocache.Md5FileNameGenerator;
|
||||
|
||||
/**
|
||||
* @author Alexey Danilov (danikula@gmail.com).
|
||||
@@ -20,7 +18,6 @@ public class App extends Application {
|
||||
}
|
||||
|
||||
private HttpProxyCacheServer newProxy() {
|
||||
FileNameGenerator nameGenerator = new Md5FileNameGenerator(getExternalCacheDir());
|
||||
return new HttpProxyCacheServer(nameGenerator);
|
||||
return new HttpProxyCacheServer(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user