NetworkPreferences: Simplify proxy setup yet again

* Allow to view and edit proxy URL without turning it off and on
* Add a new disable button in proxy dialog
* Trim whitespace and disallow new lines in the proxy URL field
* Disable buttons when not applicable

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-02-18 14:46:42 +08:00
parent cff88b1e17
commit 076b6ad291
50 changed files with 50 additions and 199 deletions

View File

@@ -290,13 +290,10 @@
<string name="pref_aurora_only_desc">只检查 Aurora Store 安装应用的更新</string>
<string name="title_app_settings">设置</string>
<string name="pref_updates_check_frequency">自动更新频率</string>
<string name="pref_network_proxy_enable">启用代理</string>
<string name="pref_network_proxy_url">代理 URL</string>
<string name="pref_network_proxy_title">代理</string>
<string name="toast_proxy_invalid">无效的代理 URL,请检查格式!</string>
<string name="toast_proxy_success">成功设置了代理</string>
<string name="toast_proxy_failed">设置代理失败</string>
<string name="pref_network_proxy_enable_desc">允许本应用所有流量经代理服务器发出</string>
<string name="pref_vending_version_device">默认(来自设备配置)</string>
<string name="pref_vending_version_title">Google Play 版本</string>
<string name="onboarding_permission_doze">后台下载</string>