cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Apply CB-5193 to InAppBrowser
Date Fri, 06 Dec 2013 15:08:13 GMT
Updated Branches:
  refs/heads/dev 034b59931 -> e819041fd


Apply CB-5193 to InAppBrowser

>From pull request:
https://github.com/apache/cordova-plugin-inappbrowser/pull/11


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/e819041f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/e819041f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/e819041f

Branch: refs/heads/dev
Commit: e819041fd411d728c635a122f404ba6184fea640
Parents: 034b599
Author: Dick van den Brink <d_vandenbrink@live.com>
Authored: Mon Nov 11 18:32:39 2013 +0100
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Dec 6 10:07:41 2013 -0500

----------------------------------------------------------------------
 src/android/InAppChromeClient.java | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/e819041f/src/android/InAppChromeClient.java
----------------------------------------------------------------------
diff --git a/src/android/InAppChromeClient.java b/src/android/InAppChromeClient.java
index 2c240c6..f3fc741 100644
--- a/src/android/InAppChromeClient.java
+++ b/src/android/InAppChromeClient.java
@@ -38,20 +38,7 @@ public class InAppChromeClient extends WebChromeClient {
             long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
     {
         LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d  currentQuota: %d  totalUsedQuota:
%d", estimatedSize, currentQuota, totalUsedQuota);
-
-        if (estimatedSize < MAX_QUOTA)
-        {
-            //increase for 1Mb
-            long newQuota = estimatedSize;
-            LOG.d(LOG_TAG, "calling quotaUpdater.updateQuota newQuota: %d", newQuota);
-            quotaUpdater.updateQuota(newQuota);
-        }
-        else
-        {
-            // Set the quota to whatever it is and force an error
-            // TODO: get docs on how to handle this properly
-            quotaUpdater.updateQuota(currentQuota);
-        }
+        quotaUpdater.updateQuota(MAX_QUOTA);
     }
 
     /**


Mime
View raw message