[2.13.0][Fix]解决父Window的Token无效导致的异常
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user