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)) {
|
private fun updateViewPager(dayCode: String? = Formatter.getTodayCode(applicationContext)) {
|
||||||
val fragment = getFragmentsHolder()
|
val fragment = getFragmentsHolder()
|
||||||
currentFragments.forEach {
|
currentFragments.forEach {
|
||||||
supportFragmentManager.beginTransaction().remove(it).commit()
|
supportFragmentManager.beginTransaction().remove(it).commitNow()
|
||||||
}
|
}
|
||||||
currentFragments.clear()
|
currentFragments.clear()
|
||||||
currentFragments.add(fragment)
|
currentFragments.add(fragment)
|
||||||
|
|
Loading…
Reference in New Issue