Fix crash when opening room creation screen from the room filtering screen

This commit is contained in:
Benoit Marty 2020-01-02 18:53:35 +01:00
parent 90f2199eb7
commit a969443517
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Other changes:
-
Bugfix 🐛:
- Fix crash when opening room creation screen from the room filtering screen
- Fix avatar image disappearing (#777)
- Fix read marker banner when permalink

View File

@ -22,6 +22,7 @@ import android.os.Bundle
import androidx.appcompat.widget.Toolbar
import com.airbnb.mvrx.viewModel
import im.vector.riotx.R
import im.vector.riotx.core.di.ScreenComponent
import im.vector.riotx.core.extensions.addFragment
import im.vector.riotx.core.platform.ToolbarConfigurable
import im.vector.riotx.core.platform.VectorBaseActivity
@ -45,6 +46,10 @@ class CreateRoomActivity : VectorBaseActivity(), ToolbarConfigurable {
configureToolbar(toolbar)
}
override fun injectWith(injector: ScreenComponent) {
injector.inject(this)
}
override fun initUiAndData() {
if (isFirstCreation()) {
addFragment(R.id.simpleFragmentContainer, CreateRoomFragment::class.java)