Skip to content

Commit 75aa69d

Browse files
authored
Merge pull request libre-tube#7345 from Bnyro/master
fix: confirm unsubscribe preference only works if disabled instead of enabled
2 parents 53b7202 + c7a587f commit 75aa69d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/github/libretube/ui/extensions/SetupSubscriptionButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fun TextView.setupSubscriptionButton(
6262
updateUIStateAndNotifyObservers()
6363
}
6464

65-
if (!PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
65+
if (PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
6666
showUnsubscribeDialog(context, channelName) {
6767
CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() }
6868
}

0 commit comments

Comments
 (0)