Commit 1515c60f authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Add AuthenticationActivity.kt

parent 63f0058a
package chat.rocket.android.app
import android.app.Activity
import android.app.Fragment
import android.os.Bundle
import chat.rocket.android.R
/**
* @author Filipe de Lima Brito (filipedelimabrito@gmail.com)
*/
class AuthenticationActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_authentication)
addFragment(AuthenticationServerFragment(), "roomListFragment")
}
private fun addFragment(fragment: Fragment, tag: String) {
fragmentManager.beginTransaction().add(R.id.fragment_container, fragment, tag).commit()
}
}
\ No newline at end of file
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