From eab175972a1c7d9ed9014e7b1d63a5c82b678743 Mon Sep 17 00:00:00 2001 From: renwj Date: Tue, 15 Aug 2023 18:58:35 +0800 Subject: [PATCH] =?UTF-8?q?[6.0.0]=20fix=E5=8C=BF=E5=90=8DRunnable?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E4=B8=AD=E5=8C=85=E5=90=ABview=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E5=81=B6=E7=8E=B0=E4=B8=8D=E6=89=A7=E8=A1=8Crun?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/mogo/launcher/lancet/MemoryLeakFix.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mogo/launcher/lancet/MemoryLeakFix.kt b/app/src/main/java/com/mogo/launcher/lancet/MemoryLeakFix.kt index 6a204380c9..40c7224eea 100644 --- a/app/src/main/java/com/mogo/launcher/lancet/MemoryLeakFix.kt +++ b/app/src/main/java/com/mogo/launcher/lancet/MemoryLeakFix.kt @@ -75,7 +75,7 @@ internal class AccessSyntheticUtils { val ret = when (t) { is View -> { lifecycle = t.lifecycleOwner.lifecycle - ViewCompat.isAttachedToWindow(t) + t.parent == null || ViewCompat.isAttachedToWindow(t) } is Activity -> { lifecycle = t.findViewById(android.R.id.content)?.lifecycleOwner?.lifecycle