replace hardcoded value with dynamic getter

This commit is contained in:
caneleex 2021-07-19 21:59:44 +02:00
parent 1cd5732fe9
commit 6748bce0e8

View File

@ -177,7 +177,7 @@ public class SponsorBlockSettings {
MUSIC_OFFTOPIC,
PREVIEW
};
private static final Map<String, SegmentInfo> mValuesMap = new HashMap<>(8);
private static final Map<String, SegmentInfo> mValuesMap = new HashMap<>(values().length + 1);
static {
for (SegmentInfo value : valuesWithoutUnsubmitted())