Skip to content

Commit

Permalink
refactor: remove debounce when selecting candidates in the compat view
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Sep 18, 2024
1 parent 9fbfe56 commit 90a7960
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.core.text.buildSpannedString
import androidx.core.text.color
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter4.util.setOnDebouncedItemClick
import com.google.android.flexbox.FlexboxLayoutManager
import com.osfans.trime.R
import com.osfans.trime.daemon.RimeSession
Expand Down Expand Up @@ -70,7 +69,7 @@ class CompactCandidateModule(

val adapter by lazy {
CompactCandidateViewAdapter(theme).apply {
setOnDebouncedItemClick { _, _, position ->
setOnItemClickListener { _, _, position ->
rime.launchOnReady { it.selectCandidate(before + position) }
}
setOnItemLongClickListener { _, view, position ->
Expand Down

0 comments on commit 90a7960

Please sign in to comment.