cache files impl

This commit is contained in:
gdlbo
2022-09-17 18:45:39 +03:00
parent 78d30f9546
commit d9d57428ce
2 changed files with 16 additions and 5 deletions
@@ -29,6 +29,10 @@ public class FileCacheImplementation {
return new File(getTrackFolder(trackId), "track.mp3");
}
public static boolean isTrackExist(String trackId) {
return CacheDatabaseDelegate.isCached(trackId);
}
public static File getTrackFile(MusicTrack track) {
return getTrackFile(track.y1());
}