From 816f73b1956d894abbc1895a288db7db67931764 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 6 Dec 2022 11:54:06 +0800 Subject: [PATCH] =?UTF-8?q?[2.13.0][Fix]=E8=A7=A3=E5=86=B3=E7=88=B6Window?= =?UTF-8?q?=E7=9A=84Token=E6=97=A0=E6=95=88=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 6 +++--- .../function/hmi/notification/WarningFloatWindowHelper.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6ee4ce5f6d..9ce3326429 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -288,9 +288,9 @@ dependencies { androidTestImplementation rootProject.ext.dependencies.localbroadcastmanager androidTestImplementation rootProject.ext.dependencies.mogo_v2x - if (isAndroidTestBuild()) { - implementation "com.mogo.thread.opt:lib:${THREAD_OPT_VERSION}" - } +// if (isAndroidTestBuild()) { +// implementation "com.mogo.thread.opt:lib:${THREAD_OPT_VERSION}" +// } } if (!isAndroidTestBuild()) { diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt index b099c4422b..3ef7faaee2 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt @@ -40,7 +40,7 @@ internal class WarningFloatWindowHelper( } fun createWindow(): Boolean { - return if (context is Activity) { + return if (context is Activity && !context.isFinishing && !context.isDestroyed) { initParams() addView() config.isShow = true