Commit 2f2277d6 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update RoomActivity.kt

parent 9e1504be
...@@ -9,7 +9,6 @@ import kotlinx.android.synthetic.main.activity_room.* ...@@ -9,7 +9,6 @@ import kotlinx.android.synthetic.main.activity_room.*
class RoomActivity : AppCompatActivity() { class RoomActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.activity_room) setContentView(R.layout.activity_room)
...@@ -35,8 +34,7 @@ class RoomActivity : AppCompatActivity() { ...@@ -35,8 +34,7 @@ class RoomActivity : AppCompatActivity() {
} }
private fun addFragment(fragment: Fragment, tag: String) { private fun addFragment(fragment: Fragment, tag: String) {
supportFragmentManager supportFragmentManager.beginTransaction()
.beginTransaction()
.add(R.id.fragment_container, fragment, tag) .add(R.id.fragment_container, fragment, tag)
.commit() .commit()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment