0
0
Fork 0
mirror of https://github.com/YTVanced/Integrations synced 2024-11-27 13:43:01 +00:00

the unsubmitted color should be white

This commit is contained in:
caneleex 2021-08-09 18:17:19 +02:00
parent 8ae0d5a9ff
commit a242895a1d

View file

@ -94,7 +94,7 @@ public class SponsorBlockSettings {
SegmentBehaviour[] possibleBehaviours = SegmentBehaviour.values();
final ArrayList<String> enabledCategories = new ArrayList<>(possibleBehaviours.length);
for (SegmentInfo segment : SegmentInfo.valuesWithoutUnsubmitted()) {
for (SegmentInfo segment : SegmentInfo.values()) {
String categoryColor = preferences.getString(segment.key + PREFERENCES_KEY_CATEGORY_COLOR_SUFFIX, SponsorBlockUtils.formatColorString(segment.defaultColor));
segment.setColor(Color.parseColor(categoryColor));
@ -114,7 +114,7 @@ public class SponsorBlockSettings {
behaviour = DefaultBehaviour;
segment.behaviour = behaviour;
if (behaviour.showOnTimeBar)
if (behaviour.showOnTimeBar && segment != SegmentInfo.UNSUBMITTED)
enabledCategories.add(segment.key);
}