mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +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 {
|
subscriptionSubscribe.setOnClickListener {
|
||||||
val channelId = subscription.url!!.toID()
|
val channelId = subscription.url!!.toID()
|
||||||
if (subscribed) {
|
if (subscribed) {
|
||||||
|
|
||||||
SubscriptionHelper.handleUnsubscribe(root.context, channelId, subscription.name ?: "") {
|
SubscriptionHelper.handleUnsubscribe(root.context, channelId, subscription.name ?: "") {
|
||||||
subscriptionSubscribe.text = root.context.getString(R.string.subscribe)
|
subscriptionSubscribe.text = root.context.getString(R.string.subscribe)
|
||||||
subscribed = false
|
subscribed = false
|
||||||
|
@ -137,7 +137,7 @@ class ChannelFragment : BaseFragment() {
|
|||||||
} else {
|
} else {
|
||||||
SubscriptionHelper.subscribe(channelId!!)
|
SubscriptionHelper.subscribe(channelId!!)
|
||||||
isSubscribed = true
|
isSubscribed = true
|
||||||
binding.channelSubscribe.text = getString(R.string.unsubscribe)
|
binding.channelSubscribe.text = getString(R.string.unsubscribe)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user