replace MergeAdapter with ConcatAdapter (fix after updating Recyclerview-Version)

This commit is contained in:
Felix 2020-10-04 15:19:08 +02:00
parent f2509c58d5
commit 7efc839710

View file

@ -13,9 +13,9 @@ import androidx.browser.customtabs.CustomTabsIntent
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.ConcatAdapter
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.MergeAdapter
import com.google.android.material.snackbar.Snackbar
import de.nicidienase.chaosflix.common.mediadata.entities.streaming.StreamUrl
import de.nicidienase.chaosflix.common.viewmodel.BrowseViewModel
@ -65,7 +65,7 @@ class LivestreamListFragment : Fragment() {
}
}
binding.list.adapter = MergeAdapter(livestreamAdapter, eventInfoAdapter)
binding.list.adapter = ConcatAdapter(livestreamAdapter, eventInfoAdapter)
binding.swipeRefreshLayout.setOnRefreshListener {
updateList()
}