cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [09/10] git commit: CB-5398 Apply KitKat content URI fix to all content URIs
Date Tue, 18 Feb 2014 20:14:27 GMT
CB-5398 Apply KitKat content URI fix to all content URIs


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/d4224e10
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/d4224e10
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/d4224e10

Branch: refs/heads/master
Commit: d4224e1098ae447a01ad22542b43c9866115d9fb
Parents: 5211319
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Feb 14 11:02:17 2014 -0500
Committer: Archana Naik <naika@lab126.com>
Committed: Tue Feb 18 12:13:16 2014 -0800

----------------------------------------------------------------------
 .../src/org/apache/cordova/IceCreamCordovaWebViewClient.java | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/d4224e10/framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java b/framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
index e11dc0e..74363c6 100644
--- a/framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
+++ b/framework/src/org/apache/cordova/IceCreamCordovaWebViewClient.java
@@ -75,13 +75,9 @@ public class IceCreamCordovaWebViewClient extends CordovaWebViewClient
{
     }
 
     private static boolean needsKitKatContentUrlFix(Uri uri) {
-        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT)
{
-            if ("content".equals(uri.getScheme()) && uri.toString().contains("%3A"))
{
-                return true;
-            }
-        }
-        return false;
+        return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT
&& "content".equals(uri.getScheme());
     }
+
     private static boolean needsSpecialsInAssetUrlFix(Uri uri) {
         if (CordovaResourceApi.getUriType(uri) != CordovaResourceApi.URI_TYPE_ASSET) {
             return false;


Mime
View raw message