mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-10 16:04:32 +01:00
avoid recreating the content of tabs at swiping
This commit is contained in:
parent
d31060739e
commit
87d3cf6501
@ -331,6 +331,7 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
private fun initFragments() {
|
||||
main_view_pager.adapter = ViewPagerAdapter(this)
|
||||
main_view_pager.offscreenPageLimit = 2
|
||||
main_view_pager.currentItem = config.lastUsedViewPagerPage
|
||||
main_view_pager.onPageChangeListener {
|
||||
main_tabs_holder.getTabAt(it)?.select()
|
||||
|
Loading…
Reference in New Issue
Block a user