mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
removing unused line
This commit is contained in:
parent
b6582c4144
commit
b375dd14f7
1 changed files with 0 additions and 1 deletions
|
@ -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() }
|
||||||
|
|
Loading…
Reference in a new issue