Commit e677b06
committed
Show embedded album art for local songs missing a cached cover
UnifiedTrack.artworkUri now falls back to the audio file's file:// URI when
the scan didn't cache a JPG (or it was evicted), so the registered
AudioFileCoverFetcher extracts the embedded picture on demand for the song
list — matching the fallback toLegacyTrack() already does for the player.
Layer the music-note placeholder behind the cover in the local SongList row
so tracks that genuinely have no art still show the icon instead of a blank.1 parent ac24ba8 commit e677b06
2 files changed
Lines changed: 25 additions & 16 deletions
File tree
- app/src/main/java/tf/monochrome/android
- data/local/repository
- ui/library
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
607 | 616 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 617 | + | |
612 | 618 | | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
620 | 622 | | |
621 | | - | |
| 623 | + | |
| 624 | + | |
622 | 625 | | |
623 | 626 | | |
624 | 627 | | |
| |||
0 commit comments