Increase offscreenPageLimit when recycle bin is used
This commit is contained in:
parent
ce855965b9
commit
68166c318c
1 changed files with 5 additions and 0 deletions
|
@ -187,6 +187,11 @@ class MainActivity : SimpleActivity() {
|
|||
)
|
||||
|
||||
view_pager.adapter = ViewPagerAdapter(this, config.useRecycleBin)
|
||||
view_pager.offscreenPageLimit = if (config.useRecycleBin) {
|
||||
2
|
||||
} else {
|
||||
1
|
||||
}
|
||||
view_pager.onPageChangeListener {
|
||||
main_tabs_holder.getTabAt(it)?.select()
|
||||
(view_pager.adapter as ViewPagerAdapter).finishActMode()
|
||||
|
|
Loading…
Reference in a new issue