refresh events at uncovered fragments

This commit is contained in:
tibbi 2018-01-22 22:04:01 +01:00
parent fbd37d4977
commit b3453bedff
1 changed files with 4 additions and 1 deletions

View File

@ -552,7 +552,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
supportFragmentManager.beginTransaction().remove(currentFragments.last()).commit()
currentFragments.removeAt(currentFragments.size - 1)
toggleGoToTodayVisibility(currentFragments.last().shouldGoToTodayBeVisible())
currentFragments.last().updateActionBarTitle()
currentFragments.last().apply {
refreshEvents()
updateActionBarTitle()
}
calendar_fab.beGoneIf(currentFragments.size == 1 && config.storedView == YEARLY_VIEW)
}