Hide keyboard on opening login host dropdown (#1455)

This commit is contained in:
Mikołaj Pich 2021-08-29 19:00:30 +02:00 committed by GitHub
parent 57d11e825b
commit 4aa6b0b995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,9 @@ class LoginFormFragment : BaseFragment<FragmentLoginFormBinding>(R.layout.fragme
loginFormRecoverLink.setOnClickListener { presenter.onRecoverClick() }
loginFormRecoverLinkSecond.setOnClickListener { presenter.onRecoverClick() }
loginFormPass.setOnEditorDoneSignIn { loginFormSignIn.callOnClick() }
loginFormHost.setOnFocusChangeListener { _, hasFocus ->
if (hasFocus) requireActivity().hideSoftInput()
}
}
with(binding.loginFormHost) {