From 94c61315f0a19066d93641b95e175a4914e107b8 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 21 Jun 2022 10:28:40 +0800 Subject: [PATCH] android: fix some excetion in doriclayer's draw function --- .../doric/src/main/java/pub/doric/shader/DoricLayer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/DoricLayer.java b/doric-android/doric/src/main/java/pub/doric/shader/DoricLayer.java index 16c9c57d..bd31d02e 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/DoricLayer.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/DoricLayer.java @@ -59,7 +59,11 @@ public class DoricLayer extends MaximumFrameLayout { mCornerPath.addRoundRect(mRect, mCornerRadii, Path.Direction.CW); canvas.clipPath(mCornerPath); } - super.draw(canvas); + try { + super.draw(canvas); + } catch (Exception e) { + e.printStackTrace(); + } } @Override