mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-10 16:00:33 -07:00
Code decontextualization
This commit is contained in:
parent
f16650a74b
commit
a4b31a9c02
108 changed files with 569 additions and 952 deletions
|
|
@ -38,9 +38,9 @@ public class SongBottomSheetViewModel extends AndroidViewModel {
|
|||
public SongBottomSheetViewModel(@NonNull Application application) {
|
||||
super(application);
|
||||
|
||||
songRepository = new SongRepository(application);
|
||||
albumRepository = new AlbumRepository(application);
|
||||
artistRepository = new ArtistRepository(application);
|
||||
songRepository = new SongRepository();
|
||||
albumRepository = new AlbumRepository();
|
||||
artistRepository = new ArtistRepository();
|
||||
}
|
||||
|
||||
public Child getSong() {
|
||||
|
|
@ -61,7 +61,7 @@ public class SongBottomSheetViewModel extends AndroidViewModel {
|
|||
|
||||
if (Preferences.isStarredSyncEnabled()) {
|
||||
DownloadUtil.getDownloadTracker(context).download(
|
||||
MappingUtil.mapMediaItem(context, song, false),
|
||||
MappingUtil.mapMediaItem(song, false),
|
||||
new Download(song)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue