mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-14 01:34:59 +01:00
commit fragment transactions asap, should fix blank/duplicate views
This commit is contained in:
parent
b4c26da2ce
commit
ab8cbf7726
@ -518,7 +518,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
}
|
||||
|
||||
fragment.arguments = bundle
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commit()
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||
}
|
||||
|
||||
fun openMonthFromYearly(dateTime: DateTime) {
|
||||
@ -527,7 +527,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
val bundle = Bundle()
|
||||
bundle.putString(DAY_CODE, Formatter.getDayCodeFromDateTime(dateTime))
|
||||
fragment.arguments = bundle
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commit()
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||
resetActionBarTitle()
|
||||
calendar_fab.beVisible()
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
@ -539,7 +539,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
val bundle = Bundle()
|
||||
bundle.putString(DAY_CODE, Formatter.getDayCodeFromDateTime(dateTime))
|
||||
fragment.arguments = bundle
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commit()
|
||||
supportFragmentManager.beginTransaction().add(R.id.fragments_holder, fragment).commitNow()
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user