Skip to content
Snippets Groups Projects
Commit 7bf767b3 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Add a metered connection preference

parent 014e7c49
No related branches found
No related tags found
1 merge request!1901Manage playback state when connection is metered
......@@ -262,6 +262,17 @@
<item>98</item>
</string-array>
<string-array name="metered_connection_list">
<item>@string/metered_do_nothing</item>
<item>@string/metered_stop</item>
<item>@string/metered_warn</item>
</string-array>
<string-array name="metered_connection_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<string-array name="list_title_ellipsize_list">
<item>@string/list_title_ellipsize_default</item>
<item>@string/list_title_ellipsize_left</item>
......
......@@ -1238,4 +1238,10 @@
<string name="podcast_mode_genres" translatable="false">audiobook(s), podcast, speech, or vocal</string>
<string name="voice_control">Voice control</string>
<string name="voice_control_help">VLC can be controlled through Google Assistant by speaking the following commands:\n\t• Play, Pause, Stop, Previous, Next\n\t• Rewind, Fast Forward, Repeat &lt;all|one|off&gt;\n\t• Jump to &lt;time&gt;, Skip &lt;duration&gt;\n\t• What\'s this &lt;artist|album|song&gt;\n\t• Play [artist|album|song|genre|playlist] &lt;name&gt;</string>
<string name="network" >Network</string>
<string name="metered_connection">Action for streams when the connection is metered</string>
<string name="metered_do_nothing">Do nothing</string>
<string name="metered_stop">Pause playback</string>
<string name="metered_warn">Warn me (the warning may be missed for audio playback)</string>
</resources>
......@@ -41,6 +41,16 @@
android:title="@string/screen_orientation"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/network">
<ListPreference
android:defaultValue="0"
android:entries="@array/metered_connection_list"
android:entryValues="@array/metered_connection_values"
android:key="metered_connection"
android:summary="%s"
android:title="@string/metered_connection"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/history">
<CheckBoxPreference
app:singleLineTitle="false"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment