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

Commit 0127c35

Browse files
fixed some merge issues
1 parent a4b9c8f commit 0127c35

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

app/src/main/java/org/schabi/newpipe/settings/SponsorBlockCategoriesSettingsFragment.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,24 @@ public void onCreatePreferences(final Bundle savedInstanceState, final String ro
3737
setColorPreference(editor,
3838
R.string.sponsor_block_category_sponsor_color_key,
3939
R.color.sponsor_segment);
40-
4140
setColorPreference(editor,
4241
R.string.sponsor_block_category_intro_color_key,
4342
R.color.intro_segment);
44-
4543
setColorPreference(editor,
4644
R.string.sponsor_block_category_outro_color_key,
4745
R.color.outro_segment);
48-
4946
setColorPreference(editor,
5047
R.string.sponsor_block_category_interaction_color_key,
5148
R.color.interaction_segment);
52-
5349
setColorPreference(editor,
5450
R.string.sponsor_block_category_self_promo_color_key,
5551
R.color.self_promo_segment);
56-
5752
setColorPreference(editor,
5853
R.string.sponsor_block_category_non_music_color_key,
5954
R.color.non_music_segment);
60-
6155
setColorPreference(editor,
6256
R.string.sponsor_block_category_preview_color_key,
6357
R.color.preview_segment);
64-
6558
setColorPreference(editor,
6659
R.string.sponsor_block_category_filler_color_key,
6760
R.color.filler_segment);

app/src/main/java/org/schabi/newpipe/util/SponsorBlockUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public static VideoSegment[] getYouTubeVideoSegments(final Context context,
9898
}
9999
if (includePreviewCategory) {
100100
categoryParamList.add("preview");
101-
101+
}
102+
102103
if (includeFillerCategory) {
103104
categoryParamList.add("filler");
104105
}
@@ -286,6 +287,8 @@ static Integer parseSegmentCategory(
286287
return colorStr == null
287288
? context.getResources().getColor(R.color.preview_segment)
288289
: Color.parseColor(colorStr);
290+
}
291+
break;
289292
case "filler":
290293
key = context.getString(R.string.sponsor_block_category_filler_key);
291294
if (prefs.getBoolean(key, false)) {

0 commit comments

Comments
 (0)