mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Setting browser history as the default. This was supposed to be done earlier, sorry about that. CB-1611
This commit is contained in:
parent
4e0c8982c9
commit
0d409f0fe3
@ -83,7 +83,7 @@ public class CordovaWebView extends WebView {
|
||||
String baseUrl;
|
||||
private Stack<String> urls = new Stack<String>();
|
||||
|
||||
boolean useBrowserHistory = false;
|
||||
boolean useBrowserHistory = true;
|
||||
|
||||
// Flag to track that a loadUrl timeout occurred
|
||||
int loadUrlTimeout = 0;
|
||||
@ -722,11 +722,11 @@ public class CordovaWebView extends WebView {
|
||||
}
|
||||
|
||||
// Init preferences
|
||||
if ("true".equals(this.getProperty("useBrowserHistory", "false"))) {
|
||||
this.useBrowserHistory = true;
|
||||
if ("false".equals(this.getProperty("useBrowserHistory", "false"))) {
|
||||
this.useBrowserHistory = false;
|
||||
}
|
||||
else {
|
||||
this.useBrowserHistory = false;
|
||||
this.useBrowserHistory = true;
|
||||
}
|
||||
|
||||
if ("true".equals(this.getProperty("fullscreen", "false"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user