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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user