From c2df38720057ca3deb3e45baafaf1eafb95671b9 Mon Sep 17 00:00:00 2001 From: zhongjh <254191389@qq.com> Date: Mon, 22 Aug 2022 17:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=20#55=20=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E7=9A=84bug=E4=BF=AE=E5=A4=8D=20=E5=8E=9F=E5=9B=A0=E6=98=AF?= =?UTF-8?q?=E5=9C=A8=E4=B8=8A=E6=AC=A1=E7=9A=84=E4=BC=98=E5=8C=96=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=9B=B4=E6=96=B0=E5=BA=95=E9=83=A8=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=A6=82=E6=9E=9C=E5=A4=84=E4=BA=8E=E5=8D=95?= =?UTF-8?q?=E6=91=84=E5=83=8F=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4null=E5=A5=94=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zhongjh/albumcamerarecorder/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/multilibrary/src/main/java/com/zhongjh/albumcamerarecorder/MainActivity.java b/multilibrary/src/main/java/com/zhongjh/albumcamerarecorder/MainActivity.java index 3d5cf875..dda226a5 100644 --- a/multilibrary/src/main/java/com/zhongjh/albumcamerarecorder/MainActivity.java +++ b/multilibrary/src/main/java/com/zhongjh/albumcamerarecorder/MainActivity.java @@ -134,8 +134,10 @@ public void finish() { @Override protected void onDestroy() { + if (mLayoutMediator != null) { + mLayoutMediator.detach(); + } super.onDestroy(); - mLayoutMediator.detach(); } @Override