mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
[CB-4013] Fixed loadUrlTimeoutValue preference.
This commit is contained in:
parent
d0b3f419ef
commit
731ae51a00
@ -425,7 +425,7 @@ public class CordovaWebView extends WebView {
|
|||||||
// Create a timeout timer for loadUrl
|
// Create a timeout timer for loadUrl
|
||||||
final CordovaWebView me = this;
|
final CordovaWebView me = this;
|
||||||
final int currentLoadUrlTimeout = me.loadUrlTimeout;
|
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
|
// Timeout error method
|
||||||
final Runnable loadError = new Runnable() {
|
final Runnable loadError = new Runnable() {
|
||||||
@ -620,7 +620,7 @@ public class CordovaWebView extends WebView {
|
|||||||
*/
|
*/
|
||||||
private void loadConfiguration() {
|
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().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
|
||||||
this.cordova.getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_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) {
|
if (bundle == null) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
name = name.toLowerCase(Locale.getDefault());
|
||||||
Object p = bundle.get(name);
|
Object p = bundle.get(name);
|
||||||
if (p == null) {
|
if (p == null) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user