mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 09:47:43 +00:00
Fix for drawable modification on background thread.
// FREEBIE
This commit is contained in:
parent
417a4b86b6
commit
4ad9d6b5cc
@ -268,7 +268,6 @@ public class BitmapUtil {
|
|||||||
|
|
||||||
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
||||||
Canvas canvas = new Canvas(bitmap);
|
Canvas canvas = new Canvas(bitmap);
|
||||||
drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
|
|
||||||
drawable.draw(canvas);
|
drawable.draw(canvas);
|
||||||
|
|
||||||
return bitmap;
|
return bitmap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user