fix: 修复快速点击判断

This commit is contained in:
HuanCheng65 2022-04-10 01:06:08 -05:00 committed by GitHub
parent f7f240fa51
commit fbb00a875a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class AboutActivity : BaseActivity() {
colorIcon colorIcon
).setOnClickListener { ).setOnClickListener {
if (System.currentTimeMillis() - lastClickTime > 2000) { if (System.currentTimeMillis() - lastClickTime > 2000) {
clickCount = 0 clickCount = 1
} else { } else {
clickCount++ clickCount++
} }
@ -58,6 +58,7 @@ class AboutActivity : BaseActivity() {
appPreferences.checkCIUpdate = true appPreferences.checkCIUpdate = true
} }
} }
lastClickTime = System.currentTimeMillis()
} }
) )
.addItem( .addItem(
@ -70,4 +71,4 @@ class AboutActivity : BaseActivity() {
}) })
.into(mainView) .into(mainView)
} }
} }