Skip to content

Commit 90a7960

Browse files
committed
refactor: remove debounce when selecting candidates in the compat view
1 parent 9fbfe56 commit 90a7960

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/osfans/trime/ime/candidates/CompactCandidateModule.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import androidx.core.text.buildSpannedString
1515
import androidx.core.text.color
1616
import androidx.lifecycle.lifecycleScope
1717
import androidx.recyclerview.widget.RecyclerView
18-
import com.chad.library.adapter4.util.setOnDebouncedItemClick
1918
import com.google.android.flexbox.FlexboxLayoutManager
2019
import com.osfans.trime.R
2120
import com.osfans.trime.daemon.RimeSession
@@ -70,7 +69,7 @@ class CompactCandidateModule(
7069

7170
val adapter by lazy {
7271
CompactCandidateViewAdapter(theme).apply {
73-
setOnDebouncedItemClick { _, _, position ->
72+
setOnItemClickListener { _, _, position ->
7473
rime.launchOnReady { it.selectCandidate(before + position) }
7574
}
7675
setOnItemLongClickListener { _, view, position ->

0 commit comments

Comments
 (0)