From 9397f0f42cb01200c49ee71948ab847b82d14246 Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Mon, 23 Jun 2014 18:18:08 +0200 Subject: [PATCH] Fix class import error --- .../cordova/plugins/CertificatesCordovaWebViewClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/android/de/martinreinhardt/cordova/plugins/CertificatesCordovaWebViewClient.java b/src/android/de/martinreinhardt/cordova/plugins/CertificatesCordovaWebViewClient.java index 71cc3c1..87950a6 100644 --- a/src/android/de/martinreinhardt/cordova/plugins/CertificatesCordovaWebViewClient.java +++ b/src/android/de/martinreinhardt/cordova/plugins/CertificatesCordovaWebViewClient.java @@ -1,9 +1,11 @@ package de.martinreinhardt.cordova.plugins; +import org.apache.cordova.CordovaInterface; import org.apache.cordova.CordovaWebView; import org.apache.cordova.CordovaWebViewClient; +import android.util.Log; import android.net.http.SslError; import android.webkit.SslErrorHandler; import android.webkit.WebView; @@ -18,6 +20,8 @@ */ public class CertificatesCordovaWebViewClient extends CordovaWebViewClient { + public static final String TAG = "CertificatesCordovaWebViewClient"; + private boolean allowUntrusted = false; public CertificatesCordovaWebViewClient(CordovaInterface cordova) { @@ -34,7 +38,7 @@ public boolean isAllowUntrusted() { @Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { - Log.d("onReceivedSslError. Proceed? " + isAllowUntrusted()); + Log.d(TAG, "onReceivedSslError. Proceed? " + isAllowUntrusted()); if (isAllowUntrusted()) { handler.proceed(); } else {