mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 16:51:49 +01:00
Tapping on the same recents tab scrolls back to top
This commit is contained in:
parent
1cde93593b
commit
ccf249f91b
@ -45,6 +45,7 @@ import eu.kanade.tachiyomi.util.view.requestPermissionsSafe
|
||||
import eu.kanade.tachiyomi.util.view.scrollViewWith
|
||||
import eu.kanade.tachiyomi.util.view.setOnQueryTextChangeListener
|
||||
import eu.kanade.tachiyomi.util.view.setStyle
|
||||
import eu.kanade.tachiyomi.util.view.smoothScrollToTop
|
||||
import eu.kanade.tachiyomi.util.view.snack
|
||||
import eu.kanade.tachiyomi.util.view.updateLayoutParams
|
||||
import eu.kanade.tachiyomi.util.view.updatePaddingRelative
|
||||
@ -570,7 +571,9 @@ class RecentsController(bundle: Bundle? = null) :
|
||||
}
|
||||
|
||||
override fun onTabUnselected(tab: TabLayout.Tab?) {}
|
||||
override fun onTabReselected(tab: TabLayout.Tab?) {}
|
||||
override fun onTabReselected(tab: TabLayout.Tab?) {
|
||||
binding.recycler.smoothScrollToTop()
|
||||
}
|
||||
})
|
||||
(activity as? MainActivity)?.showTabBar(true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user