Commit 475f671a authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Request focus when shaking the view.

parent d50c1365
......@@ -177,6 +177,7 @@ class LoginFragment : Fragment(), LoginView {
override fun shakeView(viewToShake: View) {
AnimationHelper.vibrate(viewToShake.context)
AnimationHelper.shakeView(viewToShake)
viewToShake.requestFocus()
}
private fun tintEditTextDrawableStart() {
......
......@@ -61,7 +61,7 @@ class SignupFragment : Fragment(), SignupView {
setupGlobalLayoutListener()
button_sign_up.setOnClickListener {
presenter.signup(text_name, text_email, text_username, text_password)
presenter.signup(text_name, text_username, text_password, text_email)
}
}
......@@ -86,6 +86,7 @@ class SignupFragment : Fragment(), SignupView {
override fun shakeView(viewToShake: View) {
AnimationHelper.vibrate(viewToShake.context)
AnimationHelper.shakeView(viewToShake)
viewToShake.requestFocus()
}
private fun tintEditTextDrawableStart() {
......
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