add preferences for maximum bitrate and transcoding codec
This commit is contained in:
parent
5537137e35
commit
f1c84d7ae7
7 changed files with 66 additions and 5 deletions
|
|
@ -12,4 +12,27 @@
|
|||
<item>black</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_transcode_codec_titles">
|
||||
<item>@string/codec_aac</item>
|
||||
<item>@string/codec_mp3</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_transcode_codec_values">
|
||||
<item>aac</item>
|
||||
<item>mp3</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_maximum_bitrate_titles">
|
||||
<item>@string/bitrate_unlimited</item>
|
||||
<item>@string/bitrate_320kbps</item>
|
||||
<item>@string/bitrate_256kbps</item>
|
||||
<item>@string/bitrate_128kbps</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_maximum_bitrate_values">
|
||||
<item>10000000</item>
|
||||
<item>320000</item>
|
||||
<item>256000</item>
|
||||
<item>128000</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -18,4 +18,12 @@
|
|||
|
||||
<string name="random" translatable="false">\?</string>
|
||||
|
||||
<string name="bitrate_unlimited" translatable="false">Unlimited</string>
|
||||
<string name="bitrate_320kbps" translatable="false">320Kbps</string>
|
||||
<string name="bitrate_256kbps" translatable="false">256Kbps</string>
|
||||
<string name="bitrate_128kbps" translatable="false">128Kbps</string>
|
||||
|
||||
<string name="codec_aac" translatable="false">AAC</string>
|
||||
<string name="codec_mp3" translatable="false">MP3</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@
|
|||
<string name="pref_title_app_shortcuts">Colored app shortcuts</string>
|
||||
<string name="pref_title_album_art_on_lockscreen">Show album cover</string>
|
||||
<string name="pref_title_blurred_album_art">Blur album cover</string>
|
||||
<string name="pref_title_transcode_codec">Transcode codec</string>
|
||||
<string name="pref_title_maximum_bitrate">Maximum bitrate</string>
|
||||
<string name="pref_title_classic_notification">Classic design</string>
|
||||
<string name="pref_title_colored_notification">Colored notification</string>
|
||||
<string name="pref_title_gapless_playback">Gapless playback</string>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,26 @@
|
|||
|
||||
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_audio">
|
||||
|
||||
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:defaultValue="aac"
|
||||
android:entries="@array/pref_transcode_codec_titles"
|
||||
android:entryValues="@array/pref_transcode_codec_values"
|
||||
android:key="transcode_codec"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_transcode_codec" />
|
||||
|
||||
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:defaultValue="320000"
|
||||
android:entries="@array/pref_maximum_bitrate_titles"
|
||||
android:entryValues="@array/pref_maximum_bitrate_values"
|
||||
android:key="maximum_bitrate"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_maximum_bitrate" />
|
||||
|
||||
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:defaultValue="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue