Skip to content

Commit

Permalink
Merge pull request #4559 from FineFindus/feat/move-proxy-setting
Browse files Browse the repository at this point in the history
feat(settings): move proxy settings to instance page
  • Loading branch information
Bnyro authored Aug 20, 2023
2 parents 0e8e627 + 56d2a4d commit 8934ab2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@
<string name="playing_next">Playing next in %1$s</string>
<string name="lbry_hls">LBRY HLS</string>
<string name="lbry_hls_summary">Use LBRY HLS for streaming if available.</string>
<string name="proxy">Proxy</string>
<string name="disable_proxy">Disable Piped proxy</string>
<string name="disable_proxy_summary">Load videos and images directly from YouTube\'s servers. Only enable the option if you use a VPN anyways!</string>
<string name="auto_fullscreen_shorts">Auto fullscreen on short videos</string>
Expand Down
16 changes: 0 additions & 16 deletions app/src/main/res/xml/audio_video_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,6 @@
app:title="@string/codecs"
app:useSimpleSummaryProvider="true" />

<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_server"
android:summary="@string/disable_proxy_summary"
android:title="@string/disable_proxy"
app:key="disable_video_image_proxy" />

<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="disable_video_image_proxy"
android:icon="@drawable/ic_music"
android:summary="@string/fallback_piped_proxy_desc"
android:title="@string/fallback_piped_proxy"
app:defaultValue="true"
app:key="fallback_piped_proxy" />

</PreferenceCategory>

</PreferenceScreen>
20 changes: 20 additions & 0 deletions app/src/main/res/xml/instance_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,24 @@

</PreferenceCategory>

<PreferenceCategory app:title="@string/proxy">

<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_server"
android:summary="@string/disable_proxy_summary"
android:title="@string/disable_proxy"
app:key="disable_video_image_proxy" />

<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="disable_video_image_proxy"
android:icon="@drawable/ic_music"
android:summary="@string/fallback_piped_proxy_desc"
android:title="@string/fallback_piped_proxy"
app:defaultValue="true"
app:key="fallback_piped_proxy" />

</PreferenceCategory>

</PreferenceScreen>

0 comments on commit 8934ab2

Please sign in to comment.