You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/07/14 06:37:18 UTC
[cordova-android] branch master updated: cleanup!: remove
deprecated settings & add todo comments (#1274)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git
The following commit(s) were added to refs/heads/master by this push:
new adc380c cleanup!: remove deprecated settings & add todo comments (#1274)
adc380c is described below
commit adc380cf9fcf20987a9664020eed1214bedf0733
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Wed Jul 14 15:37:12 2021 +0900
cleanup!: remove deprecated settings & add todo comments (#1274)
* chore: add todo task for setSaveFormData
* cleanup!: remove deprecated setSavePassword
* cleanup!: remove deprecated setDatabasePath
* chore: add todo task for setGeolocationDatabasePath
---
framework/src/org/apache/cordova/engine/SystemWebViewEngine.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
index ff37f9b..71fa33d 100755
--- a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
+++ b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
@@ -155,9 +155,9 @@ public class SystemWebViewEngine implements CordovaWebViewEngine {
String manufacturer = android.os.Build.MANUFACTURER;
LOG.d(TAG, "CordovaWebView is running on device made by: " + manufacturer);
- //We don't save any form data in the application
+ // We don't save any form data in the application
+ // @todo remove when Cordova drop API level 26 support
settings.setSaveFormData(false);
- settings.setSavePassword(false);
if (preferences.getBoolean("AndroidInsecureFileModeEnabled", false)) {
//These settings are deprecated and loading content via file:// URLs is generally discouraged,
@@ -173,8 +173,6 @@ public class SystemWebViewEngine implements CordovaWebViewEngine {
// We keep this disabled because we use or shim to get around DOM_EXCEPTION_ERROR_16
String databasePath = webView.getContext().getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath();
settings.setDatabaseEnabled(true);
- settings.setDatabasePath(databasePath);
-
//Determine whether we're in debug or release mode, and turn on Debugging!
ApplicationInfo appInfo = webView.getContext().getApplicationContext().getApplicationInfo();
@@ -182,6 +180,7 @@ public class SystemWebViewEngine implements CordovaWebViewEngine {
enableRemoteDebugging();
}
+ // @todo remove when Cordova drop API level 24 support
settings.setGeolocationDatabasePath(databasePath);
// Enable DOM storage
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org