We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083d519 commit 4ed8d24Copy full SHA for 4ed8d24
app/src/main/java/com/osfans/trime/ime/candidates/popup/PagedCandidatesUi.kt
@@ -62,6 +62,10 @@ class PagedCandidatesUi(
62
}
63
64
65
+ }.apply {
66
+ // We must do this to avoid ArrayIndexOutOfBoundsException
67
+ // https://github.com/google/flexbox-layout/issues/363#issuecomment-382949953
68
+ setHasStableIds(true)
69
70
71
private val candidatesLayoutManager =
@@ -75,6 +79,7 @@ class PagedCandidatesUi(
75
79
recyclerView {
76
80
visibility = View.GONE
77
81
82
+ itemAnimator = null
78
83
isFocusable = false
84
adapter = candidatesAdapter
85
layoutManager = candidatesLayoutManager
0 commit comments