mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #2766 from deltachat/adb/issue-2764
fix avatar letter misplacement
This commit is contained in:
@@ -110,7 +110,7 @@ public class QrShowFragment extends Fragment implements DcEventCenter.DcEventDel
|
||||
Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888);
|
||||
Canvas canvas = new Canvas(bitmap);
|
||||
canvas.drawRGB(255, 255, 255); // Clear background to white
|
||||
SVG svg = SVG.getFromString(dcContext.getSecurejoinQrSvg(chatId));
|
||||
SVG svg = SVG.getFromString(fixSVG(dcContext.getSecurejoinQrSvg(chatId)));
|
||||
svg.renderToCanvas(canvas);
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 90, stream);
|
||||
stream.flush();
|
||||
|
||||
Reference in New Issue
Block a user