소스 검색

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) {