fix: confirm unsubscribe preference only works if disabled instead of enabled

This commit is contained in:
Bnyro 2025-04-25 15:33:39 +02:00
parent 53b720201e
commit c7a587f509
No known key found for this signature in database

View File

@ -62,7 +62,7 @@ fun TextView.setupSubscriptionButton(
updateUIStateAndNotifyObservers()
}
if (!PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
if (PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
showUnsubscribeDialog(context, channelName) {
CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() }
}