mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +01:00
Scroll directly to chapters list for library manga (closes #3353)
This commit is contained in:
parent
b3f5f13c39
commit
1c33032721
@ -301,6 +301,11 @@ class MangaInfoChaptersController(private val fromSource: Boolean = false) :
|
|||||||
if (manga.initialized) {
|
if (manga.initialized) {
|
||||||
// Update view.
|
// Update view.
|
||||||
headerAdapter?.update(manga, source)
|
headerAdapter?.update(manga, source)
|
||||||
|
|
||||||
|
// Skips directly to chapters list by default if navigated to from the library
|
||||||
|
if (!fromSource) {
|
||||||
|
(binding.recycler.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(1, 0)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Initialize manga.
|
// Initialize manga.
|
||||||
fetchMangaInfoFromSource()
|
fetchMangaInfoFromSource()
|
||||||
|
Loading…
Reference in New Issue
Block a user