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…
Reference in New Issue