mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 02:14:52 +01:00
make sure removing fragments is synchronous, hopefully fixes blank screens
This commit is contained in:
parent
7bf1d92532
commit
4edd3af202
@ -499,7 +499,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
private fun updateViewPager(dayCode: String? = Formatter.getTodayCode(applicationContext)) {
|
||||
val fragment = getFragmentsHolder()
|
||||
currentFragments.forEach {
|
||||
supportFragmentManager.beginTransaction().remove(it).commit()
|
||||
supportFragmentManager.beginTransaction().remove(it).commitNow()
|
||||
}
|
||||
currentFragments.clear()
|
||||
currentFragments.add(fragment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user