diff --git a/app/src/main/java/com/fongmi/android/tv/player/ExoUtil.java b/app/src/main/java/com/fongmi/android/tv/player/ExoUtil.java index 27f8b6abe..0acc2789a 100644 --- a/app/src/main/java/com/fongmi/android/tv/player/ExoUtil.java +++ b/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; }