mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
lint
This commit is contained in:
parent
aa9f9852d9
commit
9912b1f4dc
@ -38,7 +38,6 @@ class SubscriptionChannelAdapter(private val subscriptions: MutableList<com.gith
|
||||
subscriptionSubscribe.setOnClickListener {
|
||||
val channelId = subscription.url!!.toID()
|
||||
if (subscribed) {
|
||||
|
||||
SubscriptionHelper.handleUnsubscribe(root.context, channelId, subscription.name ?: "") {
|
||||
subscriptionSubscribe.text = root.context.getString(R.string.subscribe)
|
||||
subscribed = false
|
||||
|
@ -137,7 +137,7 @@ class ChannelFragment : BaseFragment() {
|
||||
} else {
|
||||
SubscriptionHelper.subscribe(channelId!!)
|
||||
isSubscribed = true
|
||||
binding.channelSubscribe.text = getString(R.string.unsubscribe)
|
||||
binding.channelSubscribe.text = getString(R.string.unsubscribe)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user