From da11b3d159399971b26df0c585f0cdb482572053 Mon Sep 17 00:00:00 2001 From: Nagesh Susarla Date: Wed, 18 Feb 2015 10:38:58 -0800 Subject: [PATCH] Address lint:bugs equals of different types. Bug: 19354960 Change-Id: I981aac3c5a36660b2f51f9429316eca366533ac7 --- .../example/android/uamp/MediaNotificationManager.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mobile/src/main/java/com/example/android/uamp/MediaNotificationManager.java b/mobile/src/main/java/com/example/android/uamp/MediaNotificationManager.java index cf43beb33..bfc44dec7 100644 --- a/mobile/src/main/java/com/example/android/uamp/MediaNotificationManager.java +++ b/mobile/src/main/java/com/example/android/uamp/MediaNotificationManager.java @@ -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()); }