mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Fixed #1082: Null reference exception in view.android.setOnTouchListener method
This commit is contained in:
@ -139,6 +139,10 @@ export class View extends viewCommon.View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!owner._nativeView || !owner._nativeView.onTouchEvent) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return owner._nativeView.onTouchEvent(motionEvent);
|
return owner._nativeView.onTouchEvent(motionEvent);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user