anvil-ui / anvil-ui/anvil

Anvil event listeners don't handle focus properly

Đang mở
#96 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
1.4k
Fork
89
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Anvil version: `0.4.0`

Trying to set a listener for `onFocusChange` or `onTextChanged` on an `EditText` via Anvil does not work properly. Each time the listener gets called the `EditText` loses focus, even with an empty handler body.

This has been isolated to an Anvil issue, as my workaround to manually set the listener via `Anvil.currentView().onFocusChangeListener = MyChangeListener()` works fine.

This is reproducible on multiple versions of Android on both physical and virtual devices.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.