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,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_sponsor_color_key,
|
R.string.sponsor_block_category_sponsor_color_key,
|
||||||
R.color.sponsor_segment);
|
R.color.sponsor_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_intro_color_key,
|
R.string.sponsor_block_category_intro_color_key,
|
||||||
R.color.intro_segment);
|
R.color.intro_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_outro_color_key,
|
R.string.sponsor_block_category_outro_color_key,
|
||||||
R.color.outro_segment);
|
R.color.outro_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_interaction_color_key,
|
R.string.sponsor_block_category_interaction_color_key,
|
||||||
R.color.interaction_segment);
|
R.color.interaction_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_self_promo_color_key,
|
R.string.sponsor_block_category_self_promo_color_key,
|
||||||
R.color.self_promo_segment);
|
R.color.self_promo_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_non_music_color_key,
|
R.string.sponsor_block_category_non_music_color_key,
|
||||||
R.color.non_music_segment);
|
R.color.non_music_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_preview_color_key,
|
R.string.sponsor_block_category_preview_color_key,
|
||||||
R.color.preview_segment);
|
R.color.preview_segment);
|
||||||
|
|
||||||
setColorPreference(editor,
|
setColorPreference(editor,
|
||||||
R.string.sponsor_block_category_filler_color_key,
|
R.string.sponsor_block_category_filler_color_key,
|
||||||
R.color.filler_segment);
|
R.color.filler_segment);
|
||||||
|
|
|
@ -98,6 +98,7 @@ public final class SponsorBlockUtils {
|
||||||
}
|
}
|
||||||
if (includePreviewCategory) {
|
if (includePreviewCategory) {
|
||||||
categoryParamList.add("preview");
|
categoryParamList.add("preview");
|
||||||
|
}
|
||||||
|
|
||||||
if (includeFillerCategory) {
|
if (includeFillerCategory) {
|
||||||
categoryParamList.add("filler");
|
categoryParamList.add("filler");
|
||||||
|
@ -286,6 +287,8 @@ public final class SponsorBlockUtils {
|
||||||
return colorStr == null
|
return colorStr == null
|
||||||
? context.getResources().getColor(R.color.preview_segment)
|
? context.getResources().getColor(R.color.preview_segment)
|
||||||
: Color.parseColor(colorStr);
|
: Color.parseColor(colorStr);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "filler":
|
case "filler":
|
||||||
key = context.getString(R.string.sponsor_block_category_filler_key);
|
key = context.getString(R.string.sponsor_block_category_filler_key);
|
||||||
if (prefs.getBoolean(key, false)) {
|
if (prefs.getBoolean(key, false)) {
|
||||||
|
|
Loading…
Reference in a new issue