瀏覽代碼

Revert "修复刷卡可能的无响应"

This reverts commit 866cceb330418f0750d59020e61032ccf4288aec.
Frankensteinly 8 月之前
父節點
當前提交
2c4f242b76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/grkj/iscs/view/activity/LoginActivity.kt

+ 1 - 1
app/src/main/java/com/grkj/iscs/view/activity/LoginActivity.kt

@@ -57,7 +57,7 @@ class LoginActivity : BaseMvpActivity<ILoginView, LoginPresenter, ActivityLoginB
      * @param loginType 0:人脸 1:工卡 2:账号 3:指纹
      */
     private fun showLoginDialog(loginType: Int) {
-        if (cardLoginDialog == null || presenter == null) {
+        cardLoginDialog ?: run {
             LogUtil.i("创建Swipe dialog : ${presenter == null}")
             cardLoginDialog = LoginDialog(presenter, this) { isSuccess, cardInfoRespVO, userInfoRespVO ->
                 if (isSuccess) {