Update ExoUtil.java

pull/171/head
FongMi 3 years ago
parent dbb1732648
commit 04fb413a76
  1. 2
      app/src/main/java/com/fongmi/android/tv/player/ExoUtil.java

@ -172,7 +172,7 @@ public class ExoUtil {
private static void checkEvictor(boolean cache) {
if (noOpCacheEvictor == null) noOpCacheEvictor = new NoOpCacheEvictor();
if (usedCacheEvictor == null) usedCacheEvictor = new LeastRecentlyUsedCacheEvictor(100 * 1024 * 1024);
if (usedCacheEvictor == null) usedCacheEvictor = new LeastRecentlyUsedCacheEvictor(200 * 1024 * 1024);
CacheEvictor evictor = cache ? usedCacheEvictor : noOpCacheEvictor;
if (!evictor.equals(ExoUtil.evictor)) reset();
ExoUtil.evictor = evictor;

Loading…
Cancel
Save