mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-11-04 12:03:02 -05:00
avoid recreating the content of tabs at swiping
This commit is contained in:
1 parent
d31060739e
commit
87d3cf6501
1 file changed
+1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user