mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 05:05:06 +01:00
Update library fast scroll bubble text
category name is now always at the end of the bubble
This commit is contained in:
parent
1d3763a34d
commit
a81047ebd5
@ -10,6 +10,7 @@ import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||
import eu.kanade.tachiyomi.data.preference.getOrDefault
|
||||
import eu.kanade.tachiyomi.util.lang.chop
|
||||
import eu.kanade.tachiyomi.util.lang.removeArticles
|
||||
import eu.kanade.tachiyomi.util.system.isLTR
|
||||
import eu.kanade.tachiyomi.util.system.timeSpanFromNow
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import java.util.Locale
|
||||
@ -189,10 +190,10 @@ class LibraryCategoryAdapter(val controller: LibraryController) :
|
||||
getFirstLetter(title)
|
||||
}
|
||||
}
|
||||
if (isSingleCategory) {
|
||||
text
|
||||
} else {
|
||||
item.header?.category?.name.orEmpty() + ": " + text
|
||||
when {
|
||||
isSingleCategory -> text
|
||||
recyclerView.resources.isLTR -> text + " - " + item.header?.category?.name.orEmpty()
|
||||
else -> item.header?.category?.name.orEmpty() + " - " + text
|
||||
}
|
||||
}
|
||||
else -> ""
|
||||
|
Loading…
Reference in New Issue
Block a user