From 654d489c0119d986cdeabc882287136da4dcf58d Mon Sep 17 00:00:00 2001 From: Max Woghiren Date: Tue, 30 Jul 2013 12:21:50 -0400 Subject: [PATCH] [CB-4013] Fixed loadUrlTimeoutValue preference. --- framework/src/org/apache/cordova/CordovaWebView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 70ba57b3..91be6276 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -413,7 +413,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() { @@ -608,7 +608,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); } @@ -626,6 +626,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;