diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/TabbedBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/TabbedBottomSheet.kt index dc5aec47b1..b58d782e54 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/TabbedBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/TabbedBottomSheet.kt @@ -44,6 +44,11 @@ abstract class TabbedBottomSheetDialog(private val activity: Activity) : super.onStart() sheetBehavior.skipCollapsed = true sheetBehavior.expand() + getTabViews().forEachIndexed { index, nestedScrollView -> + val view = nestedScrollView as? NestedScrollView + view?.isNestedScrollingEnabled = binding.pager.currentItem == index + view?.requestLayout() + } binding.tabs.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener { override fun onTabSelected(tab: TabLayout.Tab?) { val view = getTabViews()[tab?.position ?: 0] as? NestedScrollView