Skip to content

Commit f3e953f

Browse files
author
Nedyalko Nikolov
committed
Changed android to _nativeView.
1 parent 542b948 commit f3e953f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎ui/core/view.android.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ export class View extends viewCommon.View {
8585

8686
public onUnloaded() {
8787
super.onUnloaded();
88-
if (this.android && this.android.setOnTouchListener) {
89-
this.android.setOnTouchListener(null);
88+
if (this._nativeView && this._nativeView.setOnTouchListener) {
89+
this._nativeView.setOnTouchListener(null);
9090
}
9191
}
9292

9393
private setOnTouchListener() {
94-
if (this.android && this.android.setOnTouchListener && Object.keys(this._gestureObservers).length > 0) {
94+
if (this._nativeView && this._nativeView.setOnTouchListener && Object.keys(this._gestureObservers).length > 0) {
9595
var that = new WeakRef(this);
96-
if (this.android.setClickable) {
97-
this.android.setClickable(true);
96+
if (this._nativeView.setClickable) {
97+
this._nativeView.setClickable(true);
9898
}
99-
this.android.setOnTouchListener(new android.view.View.OnTouchListener({
99+
this._nativeView.setOnTouchListener(new android.view.View.OnTouchListener({
100100
onTouch: function (view: android.view.View, motionEvent: android.view.MotionEvent) {
101101
var owner = that.get();
102102
if (!owner) {
@@ -147,7 +147,7 @@ export class View extends viewCommon.View {
147147
}
148148
}
149149
}
150-
return owner.android.onTouchEvent(motionEvent);
150+
return owner._nativeView.onTouchEvent(motionEvent);
151151
}
152152
}));
153153
}

0 commit comments

Comments
 (0)