fixed some merge issues
This commit is contained in:
parent
a4b9c8f19b
commit
0127c35462
2 changed files with 4 additions and 8 deletions
|
@ -37,31 +37,24 @@ public class SponsorBlockCategoriesSettingsFragment extends BasePreferenceFragme
|
|||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_sponsor_color_key,
|
||||
R.color.sponsor_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_intro_color_key,
|
||||
R.color.intro_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_outro_color_key,
|
||||
R.color.outro_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_interaction_color_key,
|
||||
R.color.interaction_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_self_promo_color_key,
|
||||
R.color.self_promo_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_non_music_color_key,
|
||||
R.color.non_music_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_preview_color_key,
|
||||
R.color.preview_segment);
|
||||
|
||||
setColorPreference(editor,
|
||||
R.string.sponsor_block_category_filler_color_key,
|
||||
R.color.filler_segment);
|
||||
|
|
|
@ -98,7 +98,8 @@ public final class SponsorBlockUtils {
|
|||
}
|
||||
if (includePreviewCategory) {
|
||||
categoryParamList.add("preview");
|
||||
|
||||
}
|
||||
|
||||
if (includeFillerCategory) {
|
||||
categoryParamList.add("filler");
|
||||
}
|
||||
|
@ -286,6 +287,8 @@ public final class SponsorBlockUtils {
|
|||
return colorStr == null
|
||||
? context.getResources().getColor(R.color.preview_segment)
|
||||
: Color.parseColor(colorStr);
|
||||
}
|
||||
break;
|
||||
case "filler":
|
||||
key = context.getString(R.string.sponsor_block_category_filler_key);
|
||||
if (prefs.getBoolean(key, false)) {
|
||||
|
|
Loading…
Reference in a new issue