Commit 51df8f31 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Remove isSignUpViewOnClickListenerSetUp variable.

parent 475f671a
......@@ -34,7 +34,6 @@ class LoginFragment : Fragment(), LoginView {
}
}
private var isGlobalLayoutListenerSetUp = false
private var isSignUpViewOnClickListenerSetUp = false
companion object {
private const val SERVER_URL = "server_url"
......@@ -153,10 +152,7 @@ class LoginFragment : Fragment(), LoginView {
override fun shouldShowSignUpView(show: Boolean) {
if (show) {
text_new_to_rocket_chat.setVisibility(true)
if (!isSignUpViewOnClickListenerSetUp) {
text_new_to_rocket_chat.setOnClickListener { presenter.signup() }
isSignUpViewOnClickListenerSetUp = true
}
text_new_to_rocket_chat.setOnClickListener { presenter.signup() }
} else {
text_new_to_rocket_chat.setVisibility(false)
}
......
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