Add song playback mode option

Add an option to customize whether a song should play from its artist, its album, or all songs when selected.
This commit is contained in:
OxygenCobalt
2020-12-12 13:50:46 -07:00
parent 859391e69b
commit aaa1ad1a3d
14 changed files with 137 additions and 50 deletions
+19 -6
View File
@@ -36,8 +36,7 @@
<SwitchPreferenceCompat
app:key="KEY_COLOR_NOTIF"
android:title="@string/setting_color_notif"
app:summaryOn="@string/setting_color_desc_on"
app:summaryOff="@string/setting_color_desc_off"
app:summary="@string/setting_color_desc"
app:iconSpaceReserved="false"
app:defaultValue="true" />
@@ -61,15 +60,29 @@
android:title="@string/setting_playback_audio_focus"
app:iconSpaceReserved="false"
app:defaultValue="true"
app:summaryOn="@string/setting_playback_focus_desc_on"
app:summaryOff="@string/setting_playback_focus_desc_off" />
app:summary="@string/setting_playback_focus_desc" />
<SwitchPreferenceCompat
app:key="KEY_PLUG_MGT"
android:title="@string/setting_playback_plug_mgt"
app:iconSpaceReserved="false"
app:defaultValue="true"
app:summaryOn="@string/setting_playback_plug_mgt_desc_on"
app:summaryOff="@string/setting_playback_plug_mgt_desc_off" />
app:allowDividerBelow="false"
app:summary="@string/setting_playback_plug_mgt_desc" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/setting_behavior"
android:layout="@layout/item_header">
<ListPreference
app:key="KEY_SONG_PLAY_MODE"
android:title="@string/setting_behavior_song_play"
app:defaultValue="ALL_SONGS"
app:entries="@array/song_playback_mode_entries"
app:entryValues="@array/song_playback_mode_values"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
</PreferenceScreen>