From 3b9d46fadcc9d1bd4d676d348655ed41a7c2b794 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 15 May 2012 15:46:10 -0700 Subject: [PATCH] Forgot to add the proper constructor. The Clients need to know about their webView. --- framework/src/org/apache/cordova/CordovaWebView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 1b60c158..cdd2fbda 100644 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -106,8 +106,8 @@ public class CordovaWebView extends WebView { { Log.d(TAG, "Your activity must implement CordovaInterface to work"); } - this.setWebChromeClient(new CordovaChromeClient(this.mCtx)); - this.setWebViewClient(new CordovaWebViewClient(this.mCtx)); + this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this)); + this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this)); this.loadConfiguration(); this.setup(); } @@ -130,8 +130,8 @@ public class CordovaWebView extends WebView { { Log.d(TAG, "Your activity must implement CordovaInterface to work"); } - this.setWebChromeClient(new CordovaChromeClient(this.mCtx)); - this.setWebViewClient(new CordovaWebViewClient(this.mCtx)); + this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this)); + this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this)); this.loadConfiguration(); this.setup(); }