mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
put the mixed menu back to two rows, and only badge real progress
The split bar read badly; a partly downloaded list goes back to stacked Download and Delete items. The badge showed progress for any list with a downloaded song in it, which made a mostly-downloaded album look like it was fetching. It now shows only when that list is complete or has a download actually in flight; a partly downloaded idle list shows nothing. The album and playlist detail screens' more-menus had no download entries at all, leaving delete reachable only via the hero's long press. They now take the same status-driven items as everywhere else.
This commit is contained in:
@@ -21,8 +21,13 @@ class DownloadIndicatorTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aPartlyDownloadedListShowsProgress() {
|
||||
assertEquals(DownloadIndicator.InProgress, ListDownloadStatus(total = 4, downloaded = 2).indicator())
|
||||
fun aPartlyDownloadedIdleListShowsNothing() {
|
||||
assertEquals(DownloadIndicator.Hidden, ListDownloadStatus(total = 4, downloaded = 2).indicator())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aPartlyDownloadedListWithSomethingInFlightShowsProgress() {
|
||||
assertEquals(DownloadIndicator.InProgress, ListDownloadStatus(total = 4, downloaded = 2, downloading = 1).indicator())
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user