We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acbedd1 commit 2307f15Copy full SHA for 2307f15
app/src/main/java/com/lagradost/cloudstream3/ui/library/LibraryFragment.kt
@@ -538,10 +538,10 @@ class LibraryFragment : BaseFragment<FragmentLibraryBinding>(
538
539
}
540
541
- @SuppressLint("NotifyDataSetChanged")
542
override fun onConfigurationChanged(newConfig: Configuration) {
543
- binding?.viewpager?.adapter?.notifyDataSetChanged()
544
super.onConfigurationChanged(newConfig)
+ val adapter = binding?.viewpager?.adapter ?: return
+ adapter.notifyItemRangeChanged(0, adapter.itemCount)
545
546
547
private val sortChangeClickListener = View.OnClickListener { view ->
0 commit comments