removing unused line

This commit is contained in:
Adam Brown 2022-08-05 11:18:53 +01:00
parent b6582c4144
commit b375dd14f7

View File

@ -83,7 +83,6 @@ fun TextInputLayout.setOnImeDoneListener(action: () -> Unit) {
* The listener is only called when the view is in a resumed state to avoid triggers when exiting a screen.
*/
fun TextInputLayout.setOnFocusLostListener(lifecycleOwner: LifecycleOwner, action: () -> Unit) {
lifecycleOwner.lifecycle
editText().setOnFocusChangeListener { _, hasFocus ->
when (hasFocus) {
false -> lifecycleOwner.lifecycleScope.launchWhenResumed { action() }