Refactor and rename metadata pref/util

This commit is contained in:
Eugene Cheung 2017-07-05 12:36:22 -04:00
commit 0bd8e4292d
No known key found for this signature in database
GPG key ID: E1FD745328866B0A
37 changed files with 133 additions and 145 deletions

View file

@ -48,7 +48,7 @@ public class ArtistImageFetcher implements DataFetcher<InputStream> {
@Override
public InputStream loadData(Priority priority) throws Exception {
if (!MusicUtil.isArtistNameUnknown(model.artistName) && Util.isAllowedToAutoDownload(context)) {
if (!MusicUtil.isArtistNameUnknown(model.artistName) && Util.isAllowedToDownloadMetadata(context)) {
Response<LastFmArtist> response = lastFMRestClient.getApiService().getArtistInfo(model.artistName, null, model.skipOkHttpCache ? "no-cache" : null).execute();
if (!response.isSuccessful()) {