Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fixed some merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
polymorphicshade committed Jul 9, 2022
1 parent a4b9c8f commit 0127c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,24 @@ public void onCreatePreferences(final Bundle savedInstanceState, final String ro
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public static VideoSegment[] getYouTubeVideoSegments(final Context context,
}
if (includePreviewCategory) {
categoryParamList.add("preview");

}

if (includeFillerCategory) {
categoryParamList.add("filler");
}
Expand Down Expand Up @@ -286,6 +287,8 @@ static Integer parseSegmentCategory(
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)) {
Expand Down

0 comments on commit 0127c35

Please sign in to comment.