incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [3/6] android commit: Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient.
Date Wed, 22 Aug 2012 13:57:11 GMT
Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/b40eb0a4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/b40eb0a4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/b40eb0a4

Branch: refs/heads/master
Commit: b40eb0a4544bcdcd6d4576a65f92e895bc7a5228
Parents: 5e3e9dd
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Aug 21 11:32:44 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Aug 22 09:46:30 2012 -0400

----------------------------------------------------------------------
 .../org/apache/cordova/CordovaChromeClient.java    |    2 ++
 .../org/apache/cordova/CordovaWebViewClient.java   |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/b40eb0a4/framework/src/org/apache/cordova/CordovaChromeClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java
index 7feee19..72c8626 100755
--- a/framework/src/org/apache/cordova/CordovaChromeClient.java
+++ b/framework/src/org/apache/cordova/CordovaChromeClient.java
@@ -23,6 +23,7 @@ import org.apache.cordova.api.LOG;
 import org.json.JSONArray;
 import org.json.JSONException;
 
+import android.annotation.TargetApi;
 import android.app.AlertDialog;
 import android.content.DialogInterface;
 import android.view.KeyEvent;
@@ -314,6 +315,7 @@ public class CordovaChromeClient extends WebChromeClient {
         super.onConsoleMessage(message, lineNumber, sourceID);
     }
 
+    @TargetApi(8)
     @Override
     public boolean onConsoleMessage(ConsoleMessage consoleMessage)
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/b40eb0a4/framework/src/org/apache/cordova/CordovaWebViewClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java
index 037f200..4513a81 100755
--- a/framework/src/org/apache/cordova/CordovaWebViewClient.java
+++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java
@@ -28,6 +28,7 @@ import org.apache.cordova.api.LOG;
 import org.json.JSONException;
 import org.json.JSONObject;
 
+import android.annotation.TargetApi;
 import android.content.Context;
 import android.content.Intent;
 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 error         The SSL error object.
      */
+    @TargetApi(8)
     @Override
     public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error)
{
 


Mime
View raw message