Skip to content

Commit

Permalink
Fix isFocused state (#270)
Browse files Browse the repository at this point in the history
Use setOnBlurEventListener to update the  state
  • Loading branch information
djoksimo authored Jun 17, 2024
1 parent b48967c commit a462420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class FlowBalanceFragment : Fragment() {
}

foragePinEditText.setOnFocusEventListener { setState() }
foragePinEditText.setOnBlurEventListener { setState() }
foragePinEditText.setOnChangeEventListener { setState() }

val state = foragePinEditText.getElementState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class FlowTokenizeFragment : Fragment() {
}

foragePanEditText.setOnFocusEventListener { setState() }
foragePanEditText.setOnBlurEventListener { setState() }
foragePanEditText.setOnChangeEventListener { setState() }

val state = foragePanEditText.getElementState()
Expand Down

0 comments on commit a462420

Please sign in to comment.