fix(youtube/sponsorblock): settings do not show default behavior (#351)

This commit is contained in:
LisoUseInAIKyrios 2023-04-08 19:43:38 +04:00 committed by oSumAtrIX
parent e3d923d564
commit 6dbccfd472
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

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