mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 21:59:47 +03:00
use correct size for png
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
96d939b2e8
commit
0c944e95db
1 changed files with 2 additions and 2 deletions
|
@ -304,8 +304,8 @@ public class ThumbnailsCacheManager {
|
|||
}
|
||||
|
||||
// Handle PNG
|
||||
if (file.getMimetype().equalsIgnoreCase(PNG_MIMETYPE)) {
|
||||
thumbnail = handlePNG(thumbnail, pxW, pxH);
|
||||
if (thumbnail != null && file.getMimetype().equalsIgnoreCase(PNG_MIMETYPE)) {
|
||||
thumbnail = handlePNG(thumbnail, thumbnail.getWidth(), thumbnail.getHeight());
|
||||
}
|
||||
|
||||
// Add thumbnail to cache
|
||||
|
|
Loading…
Reference in a new issue