mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
Forgot to add the proper constructor. The Clients need to know about their webView.
This commit is contained in:
parent
f840f3aceb
commit
3b9d46fadc
@ -106,8 +106,8 @@ public class CordovaWebView extends WebView {
|
|||||||
{
|
{
|
||||||
Log.d(TAG, "Your activity must implement CordovaInterface to work");
|
Log.d(TAG, "Your activity must implement CordovaInterface to work");
|
||||||
}
|
}
|
||||||
this.setWebChromeClient(new CordovaChromeClient(this.mCtx));
|
this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this));
|
||||||
this.setWebViewClient(new CordovaWebViewClient(this.mCtx));
|
this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this));
|
||||||
this.loadConfiguration();
|
this.loadConfiguration();
|
||||||
this.setup();
|
this.setup();
|
||||||
}
|
}
|
||||||
@ -130,8 +130,8 @@ public class CordovaWebView extends WebView {
|
|||||||
{
|
{
|
||||||
Log.d(TAG, "Your activity must implement CordovaInterface to work");
|
Log.d(TAG, "Your activity must implement CordovaInterface to work");
|
||||||
}
|
}
|
||||||
this.setWebChromeClient(new CordovaChromeClient(this.mCtx));
|
this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this));
|
||||||
this.setWebViewClient(new CordovaWebViewClient(this.mCtx));
|
this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this));
|
||||||
this.loadConfiguration();
|
this.loadConfiguration();
|
||||||
this.setup();
|
this.setup();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user