Pārlūkot izejas kodu

解决登录时候返回手机主页面 dialog卡住屏幕问题

yu.jie 3 gadi atpakaļ
vecāks
revīzija
07fad3182f

+ 1 - 0
RMA/app/src/main/java/cn/muchinfo/rma/view/autoWidget/dialog/Dialog.kt

@@ -97,6 +97,7 @@ fun AppCompatActivity.showSuccessDialog(block: (QMUITipDialog.Builder.() -> Unit
         setCanceledOnTouchOutside(false)
         setCancelable(true)
         addObserver { onDestroy { dismiss() } }
+        addObserver { onStop { dismiss() } }
     }.apply {
         autoDismissAfterShow(this@showSuccessDialog)
     }