From 313df93e953f7b849228678b450bf56bcf74d73d Mon Sep 17 00:00:00 2001 From: masensio Date: Mon, 31 Aug 2015 16:40:04 +0200 Subject: [PATCH] Set background color as background for png with tranparency --- .../owncloud/android/datamodel/ThumbnailsCacheManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index e0d0fcc963..ce8bfd4a7e 100644 --- a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -323,11 +323,9 @@ public class ThumbnailsCacheManager { px, Bitmap.Config.ARGB_8888); Canvas c = new Canvas(resultBitmap); - ColorDrawable backgroundColor = - new ColorDrawable(MainApp.getAppContext().getResources(). - getColor(R.color.background_color)); - backgroundColor.draw(c); + c.drawColor(MainApp.getAppContext().getResources(). + getColor(R.color.background_color)); c.drawBitmap(bitmap, 0, 0, null); return resultBitmap;