From 517f24e5e98de0715938f1d4f232e13d3fc40224 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 17 Feb 2020 00:18:57 -0800 Subject: [PATCH] Turned off fast scrol bubble on main library recyler --- .../kanade/tachiyomi/ui/library/LibraryCategoryAdapter.kt | 8 ++------ app/src/main/res/layout/library_controller.xml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryAdapter.kt index f89f091017..b023934fdc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryAdapter.kt @@ -85,12 +85,8 @@ class LibraryCategoryAdapter(val libraryListener: LibraryListener) : "Bottom" } else { // Get and show the first character val iFlexible: IFlexible<*>? = getItem(position) - return if (iFlexible is LibraryHeaderItem) { - iFlexible.category.name - } else { - val db:DatabaseHelper by injectLazy() - val category = db.getCategoriesForManga((iFlexible as LibraryItem).manga).executeAsBlocking().firstOrNull()?.name - category?.chop(10) ?: "Default" + if (iFlexible is LibraryHeaderItem) { + return iFlexible.category.name } val preferences:PreferencesHelper by injectLazy() when (preferences.librarySortingMode().getOrDefault()) { diff --git a/app/src/main/res/layout/library_controller.xml b/app/src/main/res/layout/library_controller.xml index 5703f91381..ca580fbaa2 100644 --- a/app/src/main/res/layout/library_controller.xml +++ b/app/src/main/res/layout/library_controller.xml @@ -34,7 +34,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="end" - app:fastScrollerBubbleEnabled="true" + app:fastScrollerBubbleEnabled="false" tools:visibility="visible" />