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

@@ -25,19 +25,12 @@
app:summary="@string/pref_dispenser_summary"
app:title="@string/pref_dispenser_title" />
<PreferenceCategory
app:iconSpaceReserved="false"
app:key="PREFERENCE_PROXY_URL"
app:singleLineTitle="false"
app:summary="protocol://user:password@host:port"
app:title="@string/pref_network_proxy_title" />
<SwitchPreferenceCompat
<Preference
app:disableDependentsState="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_PROXY_ENABLED"
app:summary="@string/pref_network_proxy_enable_desc"
app:title="@string/pref_network_proxy_enable" />
app:key="PREFERENCE_PROXY_URL"
app:summary="@string/pref_network_proxy_desc"
app:title="@string/pref_network_proxy_url" />
<PreferenceCategory
app:iconSpaceReserved="false"