Skip to content

Commit 614b117

Browse files
author
farfromrefuge
committed
fix(android): use dispatchDraw so that drawing is done on top of children
1 parent 1a69cb1 commit 614b117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui-canvas/platforms/android/java/com/akylas/canvas/CanvasView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
2222
}
2323

2424
@Override
25-
protected void onDraw(Canvas canvas) {
26-
super.onDraw(canvas);
25+
protected void dispatchDraw(Canvas canvas) {
26+
super.dispatchDraw(canvas);
2727
if (drawListener != null) {
2828
drawListener.onDraw(canvas);
2929
}

0 commit comments

Comments
 (0)