mirror of
https://github.com/YTVanced/Integrations
synced 2024-11-30 15:13:03 +00:00
the unsubmitted color should be white
This commit is contained in:
parent
8ae0d5a9ff
commit
a242895a1d
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ public class SponsorBlockSettings {
|
||||||
|
|
||||||
SegmentBehaviour[] possibleBehaviours = SegmentBehaviour.values();
|
SegmentBehaviour[] possibleBehaviours = SegmentBehaviour.values();
|
||||||
final ArrayList<String> enabledCategories = new ArrayList<>(possibleBehaviours.length);
|
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));
|
String categoryColor = preferences.getString(segment.key + PREFERENCES_KEY_CATEGORY_COLOR_SUFFIX, SponsorBlockUtils.formatColorString(segment.defaultColor));
|
||||||
segment.setColor(Color.parseColor(categoryColor));
|
segment.setColor(Color.parseColor(categoryColor));
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ public class SponsorBlockSettings {
|
||||||
behaviour = DefaultBehaviour;
|
behaviour = DefaultBehaviour;
|
||||||
|
|
||||||
segment.behaviour = behaviour;
|
segment.behaviour = behaviour;
|
||||||
if (behaviour.showOnTimeBar)
|
if (behaviour.showOnTimeBar && segment != SegmentInfo.UNSUBMITTED)
|
||||||
enabledCategories.add(segment.key);
|
enabledCategories.add(segment.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue