mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-03 01:02:55 +01:00
the unsubmitted color should be white
This commit is contained in:
parent
e1c5ba09f6
commit
7e32b63150
@ -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 New Issue
Block a user