replace hardcoded value with dynamic getter

This commit is contained in:
caneleex 2021-07-19 21:59:44 +02:00
parent e82c412c1f
commit c5a62565f0
1 changed files with 1 additions and 1 deletions

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())