diff --git a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 6fdff7d735..e762a109ef 100644 --- a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -325,19 +325,6 @@ public class ThumbnailsCacheManager { } - private Bitmap handlePNG(Bitmap bitmap, int px){ - Bitmap resultBitmap = Bitmap.createBitmap(px, - px, - Bitmap.Config.ARGB_8888); - Canvas c = new Canvas(resultBitmap); - - c.drawColor(MainApp.getAppContext().getResources(). - getColor(R.color.background_color)); - c.drawBitmap(bitmap, 0, 0, null); - - return resultBitmap; - } - private Bitmap doFileInBackground() { File file = (File)mFile; @@ -509,19 +496,6 @@ public class ThumbnailsCacheManager { return avatar; } - private Bitmap handlePNG(Bitmap bitmap, int px){ - Bitmap resultBitmap = Bitmap.createBitmap(px, - px, - Bitmap.Config.ARGB_8888); - Canvas c = new Canvas(resultBitmap); - - c.drawColor(MainApp.getAppContext().getResources(). - getColor(R.color.background_color)); - c.drawBitmap(bitmap, 0, 0, null); - - return resultBitmap; - } - private Bitmap doFileInBackground() { File file = (File) mUsername; @@ -673,4 +647,17 @@ public class ThumbnailsCacheManager { return avatarWorkerTaskReference.get(); } } + + private static Bitmap handlePNG(Bitmap bitmap, int px){ + Bitmap resultBitmap = Bitmap.createBitmap(px, + px, + Bitmap.Config.ARGB_8888); + Canvas c = new Canvas(resultBitmap); + + c.drawColor(MainApp.getAppContext().getResources(). + getColor(R.color.background_color)); + c.drawBitmap(bitmap, 0, 0, null); + + return resultBitmap; + } }