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.

(cherry picked from commit 70e4fb3)
  • Loading branch information
FlyingpigNZ authored and goofyz committed Aug 16, 2024
1 parent 0a8d470 commit 6306703
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 6306703

Please sign in to comment.