mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Set background color as background for png with tranparency
This commit is contained in:
parent
ca2892bdf1
commit
313df93e95
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue