fixed scroll to top in offline mode (#149)
* fixed small bugs * fixed scroll to top in offline mode
This commit is contained in:
parent
efb346d0a8
commit
25372d5251
4 changed files with 4 additions and 3 deletions
|
@ -276,7 +276,7 @@ class OfflineAnimeFragment : Fragment(), OfflineAnimeSearchListener {
|
|||
}
|
||||
|
||||
scrollTop.setOnClickListener {
|
||||
gridView.smoothScrollToPosition(0)
|
||||
gridView.smoothScrollToPositionFromTop(0, 0)
|
||||
}
|
||||
|
||||
// Assuming 'scrollTop' is a view that you want to hide/show
|
||||
|
|
|
@ -254,7 +254,7 @@ class OfflineMangaFragment : Fragment(), OfflineMangaSearchListener {
|
|||
}
|
||||
|
||||
scrollTop.setOnClickListener {
|
||||
gridView.smoothScrollToPosition(0)
|
||||
gridView.smoothScrollToPositionFromTop(0, 0)
|
||||
}
|
||||
|
||||
// Assuming 'scrollTop' is a view that you want to hide/show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue