mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-08 05:49:59 -05:00
player: enlarge persistent video size
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user