From f3e953f6b452087f5dd135069aaaea6c4e3e1479 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Fri, 29 May 2015 14:35:53 +0300 Subject: [PATCH] Changed android to _nativeView. --- ui/core/view.android.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/core/view.android.ts b/ui/core/view.android.ts index da02dd2a3..633a5e432 100644 --- a/ui/core/view.android.ts +++ b/ui/core/view.android.ts @@ -85,18 +85,18 @@ export class View extends viewCommon.View { public onUnloaded() { super.onUnloaded(); - if (this.android && this.android.setOnTouchListener) { - this.android.setOnTouchListener(null); + if (this._nativeView && this._nativeView.setOnTouchListener) { + this._nativeView.setOnTouchListener(null); } } private setOnTouchListener() { - if (this.android && this.android.setOnTouchListener && Object.keys(this._gestureObservers).length > 0) { + if (this._nativeView && this._nativeView.setOnTouchListener && Object.keys(this._gestureObservers).length > 0) { var that = new WeakRef(this); - if (this.android.setClickable) { - this.android.setClickable(true); + if (this._nativeView.setClickable) { + this._nativeView.setClickable(true); } - this.android.setOnTouchListener(new android.view.View.OnTouchListener({ + this._nativeView.setOnTouchListener(new android.view.View.OnTouchListener({ onTouch: function (view: android.view.View, motionEvent: android.view.MotionEvent) { var owner = that.get(); if (!owner) { @@ -147,7 +147,7 @@ export class View extends viewCommon.View { } } } - return owner.android.onTouchEvent(motionEvent); + return owner._nativeView.onTouchEvent(motionEvent); } })); }