Skip to content

Commit

Permalink
Address lint:bugs equals of different types.
Browse files Browse the repository at this point in the history
Bug: 19354960
Change-Id: I981aac3c5a36660b2f51f9429316eca366533ac7
  • Loading branch information
nageshs authored and mangini committed Mar 10, 2015
1 parent b76e6ee commit da11b3d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,15 @@ private void setNotificationPlaybackState(Notification.Builder builder) {
builder.setOngoing(mPlaybackState.getState() == PlaybackState.STATE_PLAYING);
}

private void fetchBitmapFromURLAsync(final String source, final Notification.Builder builder) {
mService.getAlbumArtCache().fetch(source, new AlbumArtCache.FetchListener() {
private void fetchBitmapFromURLAsync(final String bitmapUrl,
final Notification.Builder builder) {
mService.getAlbumArtCache().fetch(bitmapUrl, new AlbumArtCache.FetchListener() {
@Override
public void onFetched(String artUrl, Bitmap bitmap) {
if (bitmap != null && mMetadata != null && mMetadata.getDescription() != null &&
!source.equals(mMetadata.getDescription().getIconUri())) {
bitmapUrl.equals(mMetadata.getDescription().getIconUri().toString())) {
// If the media is still the same, update the notification:
LogHelper.d(TAG, "fetchBitmapFromURLAsync: set bitmap to ", source);
LogHelper.d(TAG, "fetchBitmapFromURLAsync: set bitmap to ", bitmapUrl);
builder.setLargeIcon(bitmap);
mNotificationManager.notify(NOTIFICATION_ID, builder.build());
}
Expand Down

0 comments on commit da11b3d

Please sign in to comment.