Add proxy support #376
This commit is contained in:
@@ -53,4 +53,9 @@
|
||||
<item>@string/status_on_hold</item>
|
||||
<item>@string/status_dropped</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
<string-array name="proxy_types">
|
||||
<item>@string/disabled</item>
|
||||
<item>HTTP</item>
|
||||
<item>SOCKS (v4/v5)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -50,4 +50,9 @@
|
||||
<item>@string/sync_host_default</item>
|
||||
<item>86.57.183.214:8081</item>
|
||||
</string-array>
|
||||
<string-array name="values_proxy_types" translatable="false">
|
||||
<item>DIRECT</item>
|
||||
<item>HTTP</item>
|
||||
<item>SOCKS</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -417,4 +417,8 @@
|
||||
<string name="translations">Translations</string>
|
||||
<string name="web_view_unavailable">WebView not available: check if WebView provider is installed</string>
|
||||
<string name="clear_network_cache">Clear network cache</string>
|
||||
<string name="type">Type</string>
|
||||
<string name="address">Address</string>
|
||||
<string name="port">Port</string>
|
||||
<string name="proxy">Proxy</string>
|
||||
</resources>
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
app:allowDividerAbove="true"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.koitharu.kotatsu.settings.ProxySettingsFragment"
|
||||
android:key="proxy"
|
||||
android:title="@string/proxy" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:key="ssl_bypass"
|
||||
android:title="@string/ignore_ssl_errors" />
|
||||
|
||||
24
app/src/main/res/xml/pref_proxy.xml
Normal file
24
app/src/main/res/xml/pref_proxy.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="DIRECT"
|
||||
android:entries="@array/proxy_types"
|
||||
android:entryValues="@array/values_proxy_types"
|
||||
android:key="proxy_type"
|
||||
android:title="@string/type"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<EditTextPreference
|
||||
android:key="proxy_address"
|
||||
android:title="@string/address"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<EditTextPreference
|
||||
android:key="proxy_port"
|
||||
android:title="@string/port"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user