cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject android commit: [CB-4013] Fixed loadUrlTimeoutValue preference.
Date Tue, 30 Jul 2013 16:32:31 GMT
Updated Branches:
  refs/heads/3.0.x d0b3f419e -> 731ae51a0


[CB-4013] Fixed loadUrlTimeoutValue preference.


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

Branch: refs/heads/3.0.x
Commit: 731ae51a00239daf9f3f60b0e07d79041aa3ebd3
Parents: d0b3f41
Author: Max Woghiren <max.woghiren@gmail.com>
Authored: Tue Jul 30 12:21:50 2013 -0400
Committer: Max Woghiren <max.woghiren@gmail.com>
Committed: Tue Jul 30 12:32:13 2013 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaWebView.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/731ae51a/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 06cee9c..a4d5da2 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -425,7 +425,7 @@ public class CordovaWebView extends WebView {
         // Create a timeout timer for loadUrl
         final CordovaWebView me = this;
         final int currentLoadUrlTimeout = me.loadUrlTimeout;
-        final int loadUrlTimeoutValue = Integer.parseInt(this.getProperty("loadUrlTimeoutValue",
"20000"));
+        final int loadUrlTimeoutValue = Integer.parseInt(this.getProperty("LoadUrlTimeoutValue",
"20000"));
 
         // Timeout error method
         final Runnable loadError = new Runnable() {
@@ -620,7 +620,7 @@ public class CordovaWebView extends WebView {
      */
     private void loadConfiguration() {
  
-        if ("true".equals(this.getProperty("fullscreen", "false"))) {
+        if ("true".equals(this.getProperty("Fullscreen", "false"))) {
             this.cordova.getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
             this.cordova.getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
         }
@@ -638,6 +638,7 @@ public class CordovaWebView extends WebView {
         if (bundle == null) {
             return defaultValue;
         }
+        name = name.toLowerCase(Locale.getDefault());
         Object p = bundle.get(name);
         if (p == null) {
             return defaultValue;


Mime
View raw message