We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d428748 commit 65ce28aCopy full SHA for 65ce28a
plugin/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java
@@ -348,12 +348,15 @@ public final void handle(MotionEvent origEvent) {
348
}
349
350
private void moveToState(int newState) {
351
+ if (mOrchestrator == null) {
352
+ // ignore not prepared
353
+ return;
354
+ }
355
if (mState == newState) {
356
return;
357
358
int oldState = mState;
359
mState = newState;
-
360
mOrchestrator.onHandlerStateChange(this, newState, oldState);
361
362
onStateChange(newState, oldState);
0 commit comments