cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject [cordova-plugin-whitelist] 07/28: Fix compile error introduces by 6a3d2cb3567
Date Tue, 21 Nov 2017 00:26:06 GMT
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 <agrieve@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" <commits@cordova.apache.org>.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message