fix some glitch with trying to open multiple day from month view

This commit is contained in:
tibbi
2018-02-19 16:59:42 +01:00
parent b41936d92f
commit fdb27fbf78

View File

@@ -522,6 +522,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
fun openMonthFromYearly(dateTime: DateTime) {
if (currentFragments.last() is MonthFragmentsHolder) {
return
}
val fragment = MonthFragmentsHolder()
currentFragments.add(fragment)
val bundle = Bundle()
@@ -534,6 +538,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
fun openDayFromMonthly(dateTime: DateTime) {
if (currentFragments.last() is DayFragmentsHolder) {
return
}
val fragment = DayFragmentsHolder()
currentFragments.add(fragment)
val bundle = Bundle()