Skip to content

Commit fd02dce

Browse files
committed
feat: clean code
1 parent 6cf8f03 commit fd02dce

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

android/app/src/main/java/com/httpsms/LoginActivity.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,11 @@ class LoginActivity : AppCompatActivity() {
4545
val apiKeyInputLayout = findViewById<TextInputLayout>(R.id.loginApiKeyTextInputLayout)
4646
val apiKeyInput = findViewById<TextInputEditText>(R.id.loginApiKeyTextInput)
4747

48-
// 设置点击监听器启动扫描
4948
apiKeyInput.setOnClickListener {
50-
startQrCodeScan() // 触发 QR Code 扫描
49+
startQrCodeScan()
5150
}
5251

53-
// 设置 endIcon 的点击事件监听器
5452
apiKeyInputLayout.setEndIconOnClickListener {
55-
Toast.makeText(this, "End icon clicked", Toast.LENGTH_SHORT).show()
56-
// 在这里处理 endIcon 的点击事件,例如启动相机扫描
5753
startQrCodeScan()
5854
}
5955
}

0 commit comments

Comments
 (0)