Commit a3ac2317 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update imports.

parent c37f0887
......@@ -9,7 +9,7 @@ import android.view.*
import android.widget.ScrollView
import android.widget.Toast
import chat.rocket.android.R
import chat.rocket.android.app.KeyboardHelper
import chat.rocket.android.helper.KeyboardHelper
import chat.rocket.android.authentication.login.presentation.LoginPresenter
import chat.rocket.android.authentication.login.presentation.LoginView
import dagger.android.support.AndroidSupportInjection
......
......@@ -8,10 +8,10 @@ import android.support.v4.app.Fragment
import android.view.*
import android.widget.Toast
import chat.rocket.android.R
import chat.rocket.android.app.KeyboardHelper
import chat.rocket.android.helper.KeyboardHelper
import chat.rocket.android.authentication.signup.presentation.SignupPresenter
import chat.rocket.android.authentication.signup.presentation.SignupView
import chat.rocket.android.util.content
import chat.rocket.android.util.textContent
import dagger.android.support.AndroidSupportInjection
import kotlinx.android.synthetic.main.fragment_authentication_sign_up.*
import javax.inject.Inject
......@@ -55,10 +55,10 @@ class SignupFragment : Fragment(), SignupView {
setupGlobalLayoutListener()
button_sign_up.setOnClickListener {
val email = text_email.content
val name = text_name.content
val username = text_username.content
val password = text_password.content
val email = text_email.textContent
val name = text_name.textContent
val username = text_username.textContent
val password = text_password.textContent
presenter.signup(email, name, username, password)
}
......
......@@ -13,7 +13,7 @@ import android.widget.Toast
import chat.rocket.android.R
import chat.rocket.android.authentication.twofactor.presentation.TwoFAPresenter
import chat.rocket.android.authentication.twofactor.presentation.TwoFAView
import chat.rocket.android.util.content
import chat.rocket.android.util.textContent
import dagger.android.support.AndroidSupportInjection
import kotlinx.android.synthetic.main.fragment_authentication_two_fa.*
import javax.inject.Inject
......@@ -64,7 +64,7 @@ class TwoFAFragment : Fragment(), TwoFAView {
}
button_log_in.setOnClickListener {
presenter.authenticate(username, password, text_two_factor_auth.content)
presenter.authenticate(username, password, text_two_factor_auth.textContent)
}
}
......
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