removing unused line

This commit is contained in:
Adam Brown 2022-08-05 11:18:53 +01:00
parent b6582c4144
commit b375dd14f7
1 changed files with 0 additions and 1 deletions

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. * 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) { fun TextInputLayout.setOnFocusLostListener(lifecycleOwner: LifecycleOwner, action: () -> Unit) {
lifecycleOwner.lifecycle
editText().setOnFocusChangeListener { _, hasFocus -> editText().setOnFocusChangeListener { _, hasFocus ->
when (hasFocus) { when (hasFocus) {
false -> lifecycleOwner.lifecycleScope.launchWhenResumed { action() } false -> lifecycleOwner.lifecycleScope.launchWhenResumed { action() }