mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix the crash
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user