Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
android_packages_apps_Eleven
Commits
8f8e5591
Commit
8f8e5591
authored
Nov 18, 2014
by
linus_lee
Browse files
Eleven: Remove last.fm artwork calls until we find an alternative
Change-Id: I091c1054a8455cc70ddb4a6a68e0c125c5e04c59
parent
d3feca9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/cyngn/eleven/utils/ImageUtils.java
View file @
8f8e5591
...
...
@@ -50,17 +50,21 @@ public class ImageUtils {
final
String
albumName
,
final
ImageWorker
.
ImageType
imageType
)
{
switch
(
imageType
)
{
case
ARTIST:
if
(!
TextUtils
.
isEmpty
(
artistName
))
{
// Disable last.fm calls - TODO: Find an alternative artwork provider that has
// the proper license rights for artwork
/*if (!TextUtils.isEmpty(artistName)) {
if (PreferenceUtils.getInstance(context).downloadMissingArtistImages()) {
final Artist artist = Artist.getInfo(context, artistName);
if (artist != null) {
return getBestImage(artist);
}
}
}
}
*/
break
;
case
ALBUM:
if
(!
TextUtils
.
isEmpty
(
artistName
)
&&
!
TextUtils
.
isEmpty
(
albumName
))
{
// Disable last.fm calls - TODO: Find an alternative artwork provider that has
// the proper license rights for artwork
/*if (!TextUtils.isEmpty(artistName) && !TextUtils.isEmpty(albumName)) {
if (PreferenceUtils.getInstance(context).downloadMissingArtwork()) {
final Artist correction = Artist.getCorrection(context, artistName);
if (correction != null) {
...
...
@@ -71,7 +75,7 @@ public class ImageUtils {
}
}
}
}
}
*/
break
;
default
:
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment