Skip to content

Commit

Permalink
[android] Make SvgView.drawChildren synchronized
Browse files Browse the repository at this point in the history
Fix race-condition
#948
  • Loading branch information
msand committed Feb 20, 2019
1 parent 9b1ccf0 commit fdd8f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/SvgView.java
Expand Up @@ -238,7 +238,7 @@ Rect getCanvasBounds() {
return mCanvas.getClipBounds();
}

void drawChildren(final Canvas canvas) {
synchronized void drawChildren(final Canvas canvas) {
mRendered = true;
mCanvas = canvas;
if (mAlign != null) {
Expand Down

0 comments on commit fdd8f93

Please sign in to comment.