Add offline listening to the phone app

Albums, playlists and Liked tracks get a download button beside the heart,
and every track's menu offers Download or Remove download. Files are fetched
one at a time at the streaming quality, stored decrypted with their covers,
and play from the device even online. A downloaded album, playlist or Liked
tracks follows later changes to it. What's wanted is saved before it's
fetched, so a download cut short resumes when the connection returns or the
app next starts; a foreground service with a progress notification keeps it
going with the screen off.

Collection links to a Downloads page listing what's on the device, with
progress, failures and a retry. When Yandex can't be reached at launch and
something is downloaded, the app opens on that page with the player instead
of the "can't reach" screen, and reconnects by itself when the network
returns. Offline, menus and Now Playing hide what needs a connection, and
lyrics say they can't load instead of waiting forever. Settings shows the
space downloads take and can remove them all.

Another account signing in clears the previous one's downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yuriy PanovandClaude Opus 5.5 committed 2026-10-23 14:12:34 +06:00
1 parent c13a4053ac
commit d3b3e139b5
31 files changed
+1451 -35

No files matched your search

@@ -4,4 +4,42 @@
<string name="signin_open_page">Открыть страницу входа Яндекса</string>
<string name="signin_phone_hint">Код копируется, когда открывается страница. Вставьте его там, подтвердите вход и вернитесь сюда — дальше всё произойдёт само.</string>
<string name="auto_sign_in">Войдите в Musyx, чтобы ваша музыка появилась здесь.</string>
<!-- Офлайн. -->
<string name="downloads_title">Загрузки</string>
<string name="downloads_empty">Здесь пока пусто. Скачайте альбом, плейлист или «Мне нравится» кнопкой загрузки на их странице, а трек — через его меню, и они будут играть без интернета.</string>
<string name="downloads_sets">Альбомы и плейлисты</string>
<string name="downloads_tracks">Треки</string>
<string name="downloads_waiting">Остальное скачается, когда появится интернет</string>
<string name="downloads_gone">Это больше не скачано.</string>
<string name="downloads_set_progress">Скачано %1$d из %2$d</string>
<string name="downloads_kind_playlist">Плейлист</string>
<plurals name="downloads_left">
<item quantity="one">Скачивается, остался %1$d трек</item>
<item quantity="few">Скачивается, осталось %1$d трека</item>
<item quantity="many">Скачивается, осталось %1$d треков</item>
<item quantity="other">Скачивается, осталось %1$d трека</item>
</plurals>
<plurals name="downloads_failed">
<item quantity="one">Не удалось скачать %1$d трек</item>
<item quantity="few">Не удалось скачать %1$d трека</item>
<item quantity="many">Не удалось скачать %1$d треков</item>
<item quantity="other">Не удалось скачать %1$d трека</item>
</plurals>
<string name="action_download">Скачать</string>
<string name="action_downloaded">Скачано</string>
<string name="action_remove">Удалить</string>
<string name="menu_download">Скачать</string>
<string name="menu_remove_download">Удалить загрузку</string>
<string name="download_remove_title">Удалить «%1$s» с устройства?</string>
<string name="download_remove_body">Чтобы снова послушать, понадобится интернет.</string>
<string name="offline_badge">Офлайн</string>
<string name="offline_note">Яндекс Музыка недоступна, поэтому играют только загрузки. Попробуйте ещё раз, когда появится интернет.</string>
<string name="settings_downloads">Загрузки занимают %1$s на устройстве.</string>
<string name="settings_downloads_none">Ничего не скачано.</string>
<string name="action_clear_downloads">Удалить все загрузки</string>
<string name="clear_downloads_title">Удалить все загрузки?</string>
<string name="clear_downloads_body">Все скачанные треки будут удалены с устройства. Ваша музыка в Яндексе останется как есть.</string>
<string name="notify_downloads_channel">Загрузки</string>
<string name="notify_downloading">Скачивание для прослушивания офлайн</string>
<string name="notify_progress">%1$d из %2$d · %3$s</string>
</resources>