Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9204D82F for ; Wed, 22 Aug 2012 13:57:11 +0000 (UTC) Received: (qmail 1311 invoked by uid 500); 22 Aug 2012 13:57:11 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 1276 invoked by uid 500); 22 Aug 2012 13:57:11 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 1232 invoked by uid 99); 22 Aug 2012 13:57:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 13:57:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 288ED1EE6D; Wed, 22 Aug 2012 13:57:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [3/6] android commit: Fix API lint warnings in CordovaChromeClient and CordovaWebViewClient. Message-Id: <20120822135711.288ED1EE6D@tyr.zones.apache.org> Date: Wed, 22 Aug 2012 13:57:11 +0000 (UTC) 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 Authored: Tue Aug 21 11:32:44 2012 -0400 Committer: Andrew Grieve 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) {