Skip to content

Commit

Permalink
fix: crashes when trying to insert using liquid keyboard candidate.
Browse files Browse the repository at this point in the history
This can also fix the problem that invisible TextView objects' widthes are not updated after updating candidates.
  • Loading branch information
FlyingpigNZ authored and goofyz committed Aug 16, 2024
1 parent 5776370 commit 0a8d470
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CandidateAdapter(theme: Theme) : RecyclerView.Adapter<CandidateAdapter.Vie
fun updateCandidates(candidates: List<CandidateListItem>) {
mCandidates.clear()
mCandidates.addAll(candidates)
notifyDataSetChanged()
notifyItemRangeChanged(0, candidates.size)
}

override fun getItemCount(): Int {
Expand Down

0 comments on commit 0a8d470

Please sign in to comment.