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