Merge branch 'ryd-integration' of vancedofficial:YTVanced/Integrations into ryd-integration

This commit is contained in:
VancedOfficial 2022-01-26 00:36:39 +02:00
commit fff3d18fbb

View File

@ -221,12 +221,11 @@ public abstract class SponsorBlockUtils {
new AlertDialog.Builder(context)
.setItems(items, (dialog1, which1) -> {
appContext = new WeakReference<>(context.getApplicationContext());
switch (voteOptions[which1]) {
VoteOption voteOption = voteOptions[which1];
switch (voteOption) {
case UPVOTE:
voteForSegment(segment, VoteOption.UPVOTE, appContext.get());
break;
case DOWNVOTE:
voteForSegment(segment, VoteOption.DOWNVOTE, appContext.get());
voteForSegment(segment, voteOption, appContext.get());
break;
case CATEGORY_CHANGE:
onNewCategorySelect(segment, context);