android: fix when Stack restore canvas cause draw position error

This commit is contained in:
pengfei.zhou 2021-11-24 17:38:44 +08:00 committed by osborn
parent 9704f95592
commit 265b662ca8

View File

@ -73,7 +73,7 @@ public class DoricLayer extends MaximumFrameLayout {
mRect.right = getWidth(); mRect.right = getWidth();
mRect.top = 0; mRect.top = 0;
mRect.bottom = getHeight(); mRect.bottom = getHeight();
if (canvas.getSaveCount() > 1) { if (mCornerRadii != null) {
canvas.restore(); canvas.restore();
} }
canvas.save(); canvas.save();