mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
PNG handling with NPE check first
This commit is contained in:
parent
5c44ea5884
commit
a466cfd109
1 changed files with 1 additions and 1 deletions
|
@ -485,10 +485,10 @@ public class ThumbnailsCacheManager {
|
|||
InputStream inputStream = get.getResponseBodyAsStream();
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
|
||||
avatar = ThumbnailUtils.extractThumbnail(bitmap, px, px);
|
||||
avatar = handlePNG(avatar, px);
|
||||
|
||||
// Add avatar to cache
|
||||
if (avatar != null) {
|
||||
avatar = handlePNG(avatar, px);
|
||||
addBitmapToCache(imageKey, avatar);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue