Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Fix compile error introduces by 6a3d2cb
Browse files Browse the repository at this point in the history
  • Loading branch information
agrieve committed Mar 26, 2015
1 parent b11d456 commit e55d121
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/android/LegacyWhitelistPlugin.java
Expand Up @@ -19,12 +19,10 @@ Licensed to the Apache Software Foundation (ASF) under one

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 {

Expand All @@ -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);
Expand Down Expand Up @@ -67,7 +66,7 @@ public void handleStartTag(XmlPullParser xml) {
@Override
public void handleEndTag(XmlPullParser xml) {
}
}.parse(cordova.getActivity());
}.parse(webView.getContext());
}

public Boolean shouldAllowRequest(String url) {
Expand Down

0 comments on commit e55d121

Please sign in to comment.