diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionController.kt index c1ac6ef60..b9ceb7643 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionController.kt @@ -64,17 +64,17 @@ open class ExtensionController : override fun onViewCreated(view: View) { super.onViewCreated(view) - binding.extSwipeRefresh.isRefreshing = true - binding.extSwipeRefresh.refreshes() + binding.swipeRefresh.isRefreshing = true + binding.swipeRefresh.refreshes() .onEach { presenter.findAvailableExtensions() } .launchIn(scope) // Initialize adapter, scroll listener and recycler views adapter = ExtensionAdapter(this) // Create recycler and set adapter. - binding.extRecycler.layoutManager = LinearLayoutManager(view.context) - binding.extRecycler.adapter = adapter - binding.extRecycler.addItemDecoration(ExtensionDividerItemDecoration(view.context)) + binding.recycler.layoutManager = LinearLayoutManager(view.context) + binding.recycler.adapter = adapter + binding.recycler.addItemDecoration(ExtensionDividerItemDecoration(view.context)) adapter?.fastScroller = binding.fastScroller } @@ -176,7 +176,7 @@ open class ExtensionController : } fun setExtensions(extensions: List) { - binding.extSwipeRefresh.isRefreshing = false + binding.swipeRefresh.isRefreshing = false this.extensions = extensions drawExtensions() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt index fa7d248b2..7dfd592c3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt @@ -64,6 +64,7 @@ class HistoryController : adapter = HistoryAdapter(this@HistoryController) binding.recycler.setHasFixedSize(true) binding.recycler.adapter = adapter + adapter?.fastScroller = binding.fastScroller } override fun onDestroyView(view: View) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt index c4e7ad350..0b113f134 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesController.kt @@ -93,6 +93,7 @@ class UpdatesController : binding.recycler.setHasFixedSize(true) adapter = UpdatesAdapter(this@UpdatesController) binding.recycler.adapter = adapter + adapter?.fastScroller = binding.fastScroller binding.recycler.scrollStateChanges() .onEach { diff --git a/app/src/main/res/layout/extension_controller.xml b/app/src/main/res/layout/extension_controller.xml index 80aaf9c5d..a88b50c94 100644 --- a/app/src/main/res/layout/extension_controller.xml +++ b/app/src/main/res/layout/extension_controller.xml @@ -6,12 +6,12 @@ android:layout_height="match_parent"> diff --git a/app/src/main/res/layout/history_controller.xml b/app/src/main/res/layout/history_controller.xml index afe7ebfba..fd78bd0a6 100644 --- a/app/src/main/res/layout/history_controller.xml +++ b/app/src/main/res/layout/history_controller.xml @@ -1,5 +1,6 @@ + + + +