mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
SubscriptionAdapter bug
This commit is contained in:
parent
4d86f49153
commit
843721e8ac
@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 3,
|
"versionCode": 4,
|
||||||
"versionName": "0.2.1",
|
"versionName": "0.2.2",
|
||||||
"outputFile": "app-release.apk"
|
"outputFile": "app-release.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -88,7 +88,7 @@ class Subscriptions : Fragment() {
|
|||||||
if (response.isNotEmpty()){
|
if (response.isNotEmpty()){
|
||||||
subscriptionAdapter = SubscriptionAdapter(response)
|
subscriptionAdapter = SubscriptionAdapter(response)
|
||||||
feedRecView?.adapter= subscriptionAdapter
|
feedRecView?.adapter= subscriptionAdapter
|
||||||
|
subscriptionAdapter?.updateItems()
|
||||||
}
|
}
|
||||||
progressBar.visibility=View.GONE
|
progressBar.visibility=View.GONE
|
||||||
isLoaded=true
|
isLoaded=true
|
||||||
|
@ -19,7 +19,7 @@ import com.github.libretube.videoViews
|
|||||||
|
|
||||||
class SubscriptionAdapter(private val videoFeed: List<StreamItem>): RecyclerView.Adapter<SubscriptionViewHolder>() {
|
class SubscriptionAdapter(private val videoFeed: List<StreamItem>): RecyclerView.Adapter<SubscriptionViewHolder>() {
|
||||||
//private var limitedVideoFeed: MutableList<String> = [""].toMutableList()
|
//private var limitedVideoFeed: MutableList<String> = [""].toMutableList()
|
||||||
var i = 10
|
var i = 0
|
||||||
override fun getItemCount(): Int {
|
override fun getItemCount(): Int {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user