mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 08:53:24 +08:00
Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient.
This commit is contained in:
parent
5e3e9ddb8e
commit
b40eb0a454
@ -23,6 +23,7 @@ import org.apache.cordova.api.LOG;
|
|||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
|
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
@ -314,6 +315,7 @@ public class CordovaChromeClient extends WebChromeClient {
|
|||||||
super.onConsoleMessage(message, lineNumber, sourceID);
|
super.onConsoleMessage(message, lineNumber, sourceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TargetApi(8)
|
||||||
@Override
|
@Override
|
||||||
public boolean onConsoleMessage(ConsoleMessage consoleMessage)
|
public boolean onConsoleMessage(ConsoleMessage consoleMessage)
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,7 @@ import org.apache.cordova.api.LOG;
|
|||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
@ -346,6 +347,7 @@ public class CordovaWebViewClient extends WebViewClient {
|
|||||||
* @param handler An SslErrorHandler object that will handle the user's response.
|
* @param handler An SslErrorHandler object that will handle the user's response.
|
||||||
* @param error The SSL error object.
|
* @param error The SSL error object.
|
||||||
*/
|
*/
|
||||||
|
@TargetApi(8)
|
||||||
@Override
|
@Override
|
||||||
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user