Fix UriChatWallpaper loading issue where wrong thread was used for setting the imageView resource.
This commit is contained in:
parent
133effccfc
commit
21b0a4d370
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue