From 6dbccfd472d843b5c3f0efed39b575d3ea7ac04f Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 8 Apr 2023 19:43:38 +0400 Subject: [PATCH] fix(youtube/sponsorblock): settings do not show default behavior (#351) --- .../sponsorblock/objects/SegmentCategoryListPreference.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/app/revanced/integrations/sponsorblock/objects/SegmentCategoryListPreference.java b/app/src/main/java/app/revanced/integrations/sponsorblock/objects/SegmentCategoryListPreference.java index 829b2894..b1ab4683 100644 --- a/app/src/main/java/app/revanced/integrations/sponsorblock/objects/SegmentCategoryListPreference.java +++ b/app/src/main/java/app/revanced/integrations/sponsorblock/objects/SegmentCategoryListPreference.java @@ -31,6 +31,7 @@ public class SegmentCategoryListPreference extends ListPreference { super(context); this.category = Objects.requireNonNull(category); setKey(category.key); + setDefaultValue(category.behaviour.key); setEntries(CategoryBehaviour.getBehaviorNames()); setEntryValues(CategoryBehaviour.getBehaviorKeys()); setSummary(category.description.toString());