unselect all items at day view on swipe sideways

This commit is contained in:
tibbi 2017-07-17 23:05:08 +02:00
parent 69293dd399
commit 70cc8a0781
2 changed files with 5 additions and 0 deletions

View file

@ -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() {

View file

@ -33,4 +33,8 @@ class MyDayPagerAdapter(fm: FragmentManager, private val mCodes: List<String>, p
mFragments[pos + i]?.checkEvents()
}
}
fun destroyMultiselector() {
DayEventsAdapter.actMode?.finish()
}
}