mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 01:07:32 +01:00
Revert "simplify vote switch"
This reverts commit a5d182a6
This commit is contained in:
parent
b48a2096e7
commit
07b6a80413
@ -229,11 +229,12 @@ public abstract class SponsorBlockUtils {
|
|||||||
new AlertDialog.Builder(context)
|
new AlertDialog.Builder(context)
|
||||||
.setItems(items, (dialog1, which1) -> {
|
.setItems(items, (dialog1, which1) -> {
|
||||||
appContext = new WeakReference<>(context.getApplicationContext());
|
appContext = new WeakReference<>(context.getApplicationContext());
|
||||||
VoteOption voteOption = voteOptions[which1];
|
switch (voteOptions[which1]) {
|
||||||
switch (voteOption) {
|
|
||||||
case UPVOTE:
|
case UPVOTE:
|
||||||
|
voteForSegment(segment, VoteOption.UPVOTE, appContext.get(), toastRunnable);
|
||||||
|
break;
|
||||||
case DOWNVOTE:
|
case DOWNVOTE:
|
||||||
voteForSegment(segment, voteOption, appContext.get(), toastRunnable);
|
voteForSegment(segment, VoteOption.DOWNVOTE, appContext.get(), toastRunnable);
|
||||||
break;
|
break;
|
||||||
case CATEGORY_CHANGE:
|
case CATEGORY_CHANGE:
|
||||||
onNewCategorySelect(segment, context);
|
onNewCategorySelect(segment, context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user