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