mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 09:02:50 +08:00
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
This commit is contained in:
parent
7da531ced5
commit
adc380cf9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user