Add support for proxies - 2/3

This commit is contained in:
Rahul Patel
2023-10-22 14:27:13 +05:30
parent 687c14c394
commit f19631ad6a
36 changed files with 226 additions and 44 deletions

View File

@@ -19,6 +19,28 @@
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
app:allowDividerAbove="true"
app:allowDividerBelow="true"
app:iconSpaceReserved="false"
app:key="PREFERENCE_CATEGORY_PROXY"
app:summary="protocol://user:password@host:port"
app:title="@string/pref_network_proxy_title">
<SwitchPreferenceCompat
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" />
<EditTextPreference
app:dependency="PREFERENCE_PROXY_ENABLED"
app:iconSpaceReserved="false"
app:key="PREFERENCE_PROXY_URL"
app:title="@string/pref_network_proxy_url" />
</PreferenceCategory>
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"