player: enlarge persistent video size

This commit is contained in:
Yuriy Liskov
2022-07-29 23:42:53 +03:00
parent def81853e3
commit f680c83a0b
@@ -13,7 +13,7 @@ import java.util.Map;
public class VideoStateService {
@SuppressLint("StaticFieldLeak")
private static VideoStateService sInstance;
private static final int MAX_PERSISTENT_STATE_SIZE = 50;
private static final int MAX_PERSISTENT_STATE_SIZE = 100;
// Don't store state inside Video object.
// As one video might correspond to multiple Video objects.
private final Map<String, State> mStates = Utils.createLRUMap(MAX_PERSISTENT_STATE_SIZE);