Update ExoUtil.java

okjack
FongMi 3 years ago
parent 8253fef219
commit daa103225e
  1. 3
      app/src/main/java/com/fongmi/android/tv/player/ExoUtil.java

@ -57,7 +57,6 @@ import okhttp3.Call;
public class ExoUtil {
private static HttpDataSource.Factory httpDataSourceFactory;
private static long MAX_CACHE_BYTE = 100 * 1024 * 1024;
private static DataSource.Factory dataSourceFactory;
private static ExtractorsFactory extractorsFactory;
private static DatabaseProvider database;
@ -191,7 +190,7 @@ public class ExoUtil {
}
private static synchronized Cache getCache() {
if (cache == null) cache = new SimpleCache(Path.exo(), new LeastRecentlyUsedCacheEvictor(MAX_CACHE_BYTE), getDatabase());
if (cache == null) cache = new SimpleCache(Path.exo(), new LeastRecentlyUsedCacheEvictor(100 * 1024 * 1024), getDatabase());
return cache;
}

Loading…
Cancel
Save