Compare commits

..

2 Commits
3.0.0 ... 3.0.x

Author SHA1 Message Date
Max Woghiren
4fc26fb686 [CB-4013] Added a missing import. 2013-08-08 00:49:40 -04:00
Max Woghiren
731ae51a00 [CB-4013] Fixed loadUrlTimeoutValue preference. 2013-07-30 12:32:13 -04:00

View File

@@ -23,6 +23,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import org.apache.cordova.Config;
import org.apache.cordova.CordovaInterface;
@@ -425,7 +426,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 +621,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 +639,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;