Commit 3fb07065 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update AuthenticationActivity (which extends BaseActivity class instead of Acitivity class)

parent 34fea3b1
package chat.rocket.android.app
import android.app.Activity
import android.app.Fragment
import android.os.Bundle
import chat.rocket.android.BaseActivity
import chat.rocket.android.R
/**
* @author Filipe de Lima Brito (filipedelimabrito@gmail.com)
*/
class AuthenticationActivity : Activity() {
class AuthenticationActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_authentication)
LayoutHelper.androidBug5497Workaround(this)
addFragment(AuthenticationLoginFragment(), "authenticationServerFragment")
}
private fun addFragment(fragment: Fragment, tag: String) {
fragmentManager.beginTransaction().add(R.id.fragment_container, fragment, tag).commit()
addFragment(AuthenticationLoginFragment(), "authenticationServerFragment", R.id.fragment_container)
}
}
\ 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