You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2017/11/21 00:26:06 UTC
[cordova-plugin-whitelist] 07/28: Fix compile error introduces by
6a3d2cb3567
This is an automated email from the ASF dual-hosted git repository.
macdonst pushed a commit to branch deprecation
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-whitelist.git
commit e55d121a4f28d0783816941f5730694a63f3f80c
Author: Andrew Grieve <ag...@chromium.org>
AuthorDate: Thu Mar 26 10:39:57 2015 -0400
Fix compile error introduces by 6a3d2cb3567
---
src/android/LegacyWhitelistPlugin.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/android/LegacyWhitelistPlugin.java b/src/android/LegacyWhitelistPlugin.java
index 76a29fc..d8f81c9 100644
--- a/src/android/LegacyWhitelistPlugin.java
+++ b/src/android/LegacyWhitelistPlugin.java
@@ -19,12 +19,10 @@
package org.apache.cordova.whitelist;
-import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
-import org.apache.cordova.CordovaWebView;
import org.apache.cordova.ConfigXmlParser;
import org.apache.cordova.Whitelist;
-import android.content.res.XmlResourceParser;
+import org.xmlpull.v1.XmlPullParser;
public class LegacyWhitelistPlugin extends CordovaPlugin {
@@ -33,7 +31,8 @@ public class LegacyWhitelistPlugin extends CordovaPlugin {
private static final String TAG = "Whitelist";
- public void initialize(CordovaInterface cordova, CordovaWebView webView) {
+ @Override
+ public void pluginInitialize() {
// Add implicitly allowed URLs
internalWhitelist.addWhiteListEntry("file:///*", false);
internalWhitelist.addWhiteListEntry("content:///*", false);
@@ -67,7 +66,7 @@ public class LegacyWhitelistPlugin extends CordovaPlugin {
@Override
public void handleEndTag(XmlPullParser xml) {
}
- }.parse(cordova.getActivity());
+ }.parse(webView.getContext());
}
public Boolean shouldAllowRequest(String url) {
--
To stop receiving notification emails like this one, please contact
"commits@cordova.apache.org" <co...@cordova.apache.org>.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org