Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CB-1973: We don't need to log three damn times! If it wasn't for HTC,…

… I'd remove this entirely.
  • Loading branch information...
commit 2a42c463d208d7983eb25c3f974ba96a5be3ed3d 1 parent 182843e
@infil00p infil00p authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 framework/src/org/apache/cordova/CordovaChromeClient.java
View
9 framework/src/org/apache/cordova/CordovaChromeClient.java
@@ -296,12 +296,17 @@ public void onExceededDatabaseQuota(String url, String databaseIdentifier, long
}
// console.log in api level 7: http://developer.android.com/guide/developing/debug-tasks.html
+ // Expect this to not compile in a future Android release!
@SuppressWarnings("deprecation")
@Override
public void onConsoleMessage(String message, int lineNumber, String sourceID)
{
- LOG.d(TAG, "%s: Line %d : %s", sourceID, lineNumber, message);
- super.onConsoleMessage(message, lineNumber, sourceID);
+ //This is only for Android 2.1
+ if(android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.ECLAIR_MR1)
+ {
+ LOG.d(TAG, "%s: Line %d : %s", sourceID, lineNumber, message);
+ super.onConsoleMessage(message, lineNumber, sourceID);
+ }
}
@TargetApi(8)
Please sign in to comment.
Something went wrong with that request. Please try again.