Commit 0bbd40f
authored
[Android] Guard update events to only be dispatched in ACTIVE state (#4332)
## Description
1. Removes unused `isFirstEvent`
2. Adds a guard to ensure `update` events are only dispatched in
`ACTIVE` state. I've noticed that `dispatchHandlerUpdate` was being
called in state `END`.
## Test plan
I didn't observe it in the runtime, only in the debugger while working
on `Touchable` optimizations.1 parent bbb49c3 commit 0bbd40f
1 file changed
Lines changed: 1 addition & 2 deletions
File tree
- packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | 331 | | |
333 | | - | |
| 332 | + | |
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
| |||
0 commit comments