Go offline when playback fails without a connection
A track that failed to load, or a station that couldn't fetch more, used to skip three times and stop, even with downloads on the phone. Now a failure checks for a connection, and with none the app goes offline: a queue skips to its downloaded tracks (trying each track once, so a fully missing queue stops with a notice), and a station, which has nothing more to give offline, gives way to all downloads, shuffled. Now Playing stays open through the switch and back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d085c169fb
commit
250e721fea
12 files changed
+115
-6
No files matched your search
@@ -108,6 +108,7 @@ internal fun noticeText(notice: Notice): String = when (notice) {
|
||||
Notice.StationDry -> stringResource(R.string.notice_station_dry)
|
||||
Notice.TooManyFailures -> stringResource(R.string.notice_too_many)
|
||||
is Notice.Skipped -> stringResource(R.string.notice_skipped, notice.title)
|
||||
Notice.NothingDownloaded -> stringResource(R.string.notice_nothing_downloaded)
|
||||
}
|
||||
|
||||
/** The cover on the stage: as large as the stage's height allows under the transport. */
|
||||
|
||||
@@ -211,6 +211,7 @@
|
||||
<string name="notice_station_dry">Не удалось загрузить продолжение станции. Проверьте подключение и попробуйте ещё раз.</string>
|
||||
<string name="notice_too_many">Несколько треков подряд не удалось воспроизвести. Проверьте подключение и попробуйте ещё раз.</string>
|
||||
<string name="notice_skipped">Не удалось воспроизвести «%1$s», трек пропущен.</string>
|
||||
<string name="notice_nothing_downloaded">Ни один трек в очереди не загружен. Подключитесь к интернету, чтобы их послушать.</string>
|
||||
|
||||
<string name="menu_next_track">Следующий трек</string>
|
||||
<string name="menu_play_next">Играть следующим</string>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<string name="notice_station_dry">Couldn\'t load more of this station. Check your connection and try again.</string>
|
||||
<string name="notice_too_many">Several tracks in a row couldn\'t be played. Check your connection and try again.</string>
|
||||
<string name="notice_skipped">Couldn\'t play “%1$s”, so it was skipped.</string>
|
||||
<string name="notice_nothing_downloaded">None of the queued tracks are downloaded. Connect to the internet to play them.</string>
|
||||
|
||||
<!-- Track menu and dialogs -->
|
||||
<string name="menu_next_track">Next track</string>
|
||||
|
||||
Reference in new issue
Block a user