android: fix some excetion in doriclayer's draw function

This commit is contained in:
pengfei.zhou 2022-06-21 10:28:40 +08:00 committed by osborn
parent f6254304e0
commit 94c61315f0

View File

@ -59,7 +59,11 @@ public class DoricLayer extends MaximumFrameLayout {
mCornerPath.addRoundRect(mRect, mCornerRadii, Path.Direction.CW); mCornerPath.addRoundRect(mRect, mCornerRadii, Path.Direction.CW);
canvas.clipPath(mCornerPath); canvas.clipPath(mCornerPath);
} }
try {
super.draw(canvas); super.draw(canvas);
} catch (Exception e) {
e.printStackTrace();
}
} }
@Override @Override