Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient.

This commit is contained in:
Andrew Grieve 2012-08-21 11:32:44 -04:00
parent 5e3e9ddb8e
commit b40eb0a454
2 changed files with 4 additions and 0 deletions

View File

@ -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)
{ {

View File

@ -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) {