From 87dd28fa2d74710e474015de708a98bb9d0f8771 Mon Sep 17 00:00:00 2001 From: wangshouheng Date: Wed, 7 Sep 2022 14:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BE=8B=E7=BA=BF=E7=A8=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/tencent/matrix/trace/view/FrameDecorator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix/matrix-android/matrix-trace-canary/src/main/java/com/tencent/matrix/trace/view/FrameDecorator.java b/matrix/matrix-android/matrix-trace-canary/src/main/java/com/tencent/matrix/trace/view/FrameDecorator.java index f2dc95f9e..5be61ba5d 100644 --- a/matrix/matrix-android/matrix-trace-canary/src/main/java/com/tencent/matrix/trace/view/FrameDecorator.java +++ b/matrix/matrix-android/matrix-trace-canary/src/main/java/com/tencent/matrix/trace/view/FrameDecorator.java @@ -358,7 +358,9 @@ public static FrameDecorator getInstance(final Context context) { mainHandler.post(new Runnable() { @Override public void run() { - instance = new FrameDecorator(context, new FloatFrameView(context)); + if (instance == null) { + instance = new FrameDecorator(context, new FloatFrameView(context)); + } synchronized (lock) { lock.notifyAll(); }