Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add a way to export and import settings #141

Open
pardofelis opened this issue Jul 27, 2024 · 0 comments
Open

[FEATURE] Add a way to export and import settings #141

pardofelis opened this issue Jul 27, 2024 · 0 comments

Comments

@pardofelis
Copy link

pardofelis commented Jul 27, 2024

Your feature request. Please describe.
As of now, the settings have to be set manually. This isn't that bad, unless you have multiple devices you want to have the same settings, or want to reinstall the app. For that reason, a way to export and import the settings would save time.

If I understand these lines 51 ff. in the file CustomWebView.kt correctly, there is already a class called settings whose variables carry the settings, so maybe the export feature could take this class, put it into plain text and save it as a file?

        settings.domStorageEnabled = true
        settings.databaseEnabled = true
        settings.saveFormData = true
        settings.javaScriptCanOpenWindowsAutomatically = true
        settings.cacheMode = WebSettings.LOAD_NO_CACHE
        settings.allowFileAccess = true
        settings.allowFileAccessFromFileURLs = true
        settings.allowContentAccess = true
        settings.setSupportZoom(true)
        settings.loadWithOverviewMode = true
        settings.useWideViewPort = true
        settings.pluginState = WebSettings.PluginState.ON
        settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
        // settings.cacheMode = WebSettings.LOAD_NO_CACHE;
        settings.mediaPlaybackRequiresUserGesture = false;```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant