mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix UriChatWallpaper loading issue where wrong thread was used for setting the imageView resource.
This commit is contained in:
committed by
Nicholas Tinsley
parent
133effccfc
commit
21b0a4d370
@@ -84,13 +84,12 @@ final class UriChatWallpaper implements ChatWallpaper, Parcelable {
|
||||
|
||||
@Override
|
||||
public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> target, DataSource dataSource, boolean isFirstResource) {
|
||||
Log.i(TAG, "Loaded wallpaper " + uri);
|
||||
imageView.setImageBitmap(resource);
|
||||
Log.i(TAG, "Loaded wallpaper " + uri + " on " + Thread.currentThread().getName());
|
||||
CACHE.put(uri, resource);
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.submit();
|
||||
.into(imageView);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user