mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix some glitch with trying to open multiple day from month view
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user