fix the crash

This commit is contained in:
hamidbsd
2019-11-27 20:17:57 +03:00
committed by GitHub
parent 5b647bd809
commit 32fb5bfb58

View File

@ -380,10 +380,12 @@ export class View extends ViewCommon {
@profile
public onUnloaded() {
if (this.touchListenerIsSet) {
this.nativeViewProtected.setOnTouchListener(null);
this.touchListenerIsSet = false;
if (this.nativeViewProtected) {
this.nativeViewProtected.setOnTouchListener(null);
this.nativeViewProtected.setClickable(this._isClickable);
}
}
this._manager = null;
this._rootManager = null;