mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
fix(youtube/sponsorblock): settings do not show default behavior (#351)
This commit is contained in:
parent
e3d923d564
commit
6dbccfd472
@ -31,6 +31,7 @@ public class SegmentCategoryListPreference extends ListPreference {
|
|||||||
super(context);
|
super(context);
|
||||||
this.category = Objects.requireNonNull(category);
|
this.category = Objects.requireNonNull(category);
|
||||||
setKey(category.key);
|
setKey(category.key);
|
||||||
|
setDefaultValue(category.behaviour.key);
|
||||||
setEntries(CategoryBehaviour.getBehaviorNames());
|
setEntries(CategoryBehaviour.getBehaviorNames());
|
||||||
setEntryValues(CategoryBehaviour.getBehaviorKeys());
|
setEntryValues(CategoryBehaviour.getBehaviorKeys());
|
||||||
setSummary(category.description.toString());
|
setSummary(category.description.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user