[6.7.0][工具箱] fix: 漫游 点击不生效问题;

This commit is contained in:
aibingbing
2024-10-12 15:11:46 +08:00
parent 6e485fe4ea
commit ecb9925c69
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ import com.mogo.eagle.core.utilcode.util.ClickUtils
import com.mogo.eagle.core.utilcode.util.ThreadUtils
import com.mogo.eagle.core.utilcode.util.ToastUtils
import kotlinx.android.synthetic.main.view_tool_driver_roma.view.ivRomaView
import kotlinx.android.synthetic.main.view_tool_driver_roma.view.toolDriverRomaContainer
class ToolDriverRomaView @JvmOverloads constructor(
context: Context,
@@ -41,7 +42,7 @@ class ToolDriverRomaView @JvmOverloads constructor(
0
)
setOnClickListener {
toolDriverRomaContainer.setOnClickListener {
if (ClickUtils.isClickTooFrequent(this, 2500)) {
ToastUtils.showShort("不要频繁点击哦~")
return@setOnClickListener

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cl_roma_bg"
android:id="@+id/toolDriverRomaContainer"
android:layout_width="match_parent"
android:layout_height="match_parent">