mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
fix subs
This commit is contained in:
parent
32d56d33f8
commit
2c22978cce
@ -1571,9 +1571,11 @@ class PlayerFragment : Fragment() {
|
|||||||
if (isSubscribed == true) {
|
if (isSubscribed == true) {
|
||||||
SubscriptionHelper.unsubscribe(channelId)
|
SubscriptionHelper.unsubscribe(channelId)
|
||||||
binding.playerSubscribe.text = getString(R.string.subscribe)
|
binding.playerSubscribe.text = getString(R.string.subscribe)
|
||||||
|
isSubscribed = false
|
||||||
} else {
|
} else {
|
||||||
SubscriptionHelper.subscribe(channelId)
|
SubscriptionHelper.subscribe(channelId)
|
||||||
binding.playerSubscribe.text = getString(R.string.unsubscribe)
|
binding.playerSubscribe.text = getString(R.string.unsubscribe)
|
||||||
|
isSubscribed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user