unselect all items at day view on swipe sideways
This commit is contained in:
parent
69293dd399
commit
70cc8a0781
2 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,7 @@ class DayActivity : SimpleActivity(), NavigationListener, ViewPager.OnPageChange
|
|||
|
||||
override fun onPageSelected(position: Int) {
|
||||
mPagerPos = position
|
||||
(view_pager.adapter as MyDayPagerAdapter).destroyMultiselector()
|
||||
}
|
||||
|
||||
override fun goLeft() {
|
||||
|
|
|
@ -33,4 +33,8 @@ class MyDayPagerAdapter(fm: FragmentManager, private val mCodes: List<String>, p
|
|||
mFragments[pos + i]?.checkEvents()
|
||||
}
|
||||
}
|
||||
|
||||
fun destroyMultiselector() {
|
||||
DayEventsAdapter.actMode?.finish()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue