mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Change useBrowserHistory to default to true (actually)
Also logs a deprecation mession on start-up when it is set to false. Fixes issue: https://issues.apache.org/jira/browse/CB-1611
This commit is contained in:
parent
0aa98ac2da
commit
6a1e089b73
@ -731,11 +731,10 @@ public class CordovaWebView extends WebView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init preferences
|
// Init preferences
|
||||||
if ("false".equals(this.getProperty("useBrowserHistory", "false"))) {
|
this.useBrowserHistory = !"false".equals(this.getProperty("useBrowserHistory", "true"));
|
||||||
this.useBrowserHistory = false;
|
if (!this.useBrowserHistory) {
|
||||||
}
|
// Deprecated in Cordova 2.2.0.
|
||||||
else {
|
Log.w(TAG, "useBrowserHistory=false is deprecated. Use history.back() instead of navigator.app.backHistory().");
|
||||||
this.useBrowserHistory = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("true".equals(this.getProperty("fullscreen", "false"))) {
|
if ("true".equals(this.getProperty("fullscreen", "false"))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user