behavior: add option to pause when a song repeats

Add a new option to pause playback whenever a song loops [e.g while in
LoopMode.TRACK]. This does mean that we can no longer use exoplayer's
native looping system, but it doesn't seem to be that much of an issue.

Resolves #29.
This commit is contained in:
OxygenCobalt
2021-07-22 17:00:51 -06:00
parent 33332dbf6b
commit 2e278aef8a
5 changed files with 29 additions and 11 deletions
+8
View File
@@ -126,6 +126,14 @@
app:summary="@string/setting_behavior_rewind_prev_desc"
app:title="@string/setting_behavior_rewind_prev" />
<SwitchPreference
app:allowDividerBelow="false"
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="KEY_LOOP_PAUSE"
app:summary="@string/setting_behavior_loop_pause_desc"
app:title="@string/setting_behavior_loop_pause" />
</PreferenceCategory>
<PreferenceCategory