Skip to content

Commit

Permalink
chore: disable layout update animations.
Browse files Browse the repository at this point in the history
This is to disable animated update
for candidate changes.
  • Loading branch information
FlyingpigNZ committed Jun 23, 2024
1 parent c463d86 commit 70e4fb3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ class LiquidKeyboard(
layoutManager = flexboxLayoutManager
adapter = varLengthAdapter
setItemViewCacheSize(50)
// CandidateAdapter现在使用notifyItemRangeChanged,下面禁用layout变化的缺省动画。
keyboardView.itemAnimator = null
setHasFixedSize(false)
isSelected = true
}
Expand Down

0 comments on commit 70e4fb3

Please sign in to comment.