firebase / firebase/codelab-friendlychat-android
LinearLayoutManager tends to crash when new image inserted
Open
- Dominant language
- Kotlin
- Stars
- 278
- Forks
- 344
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 4
Description
I can catch the exception using this wrapper, and then everything goes fine, but it is not the properr way...
class LlmWrapper(context: Context) : LinearLayoutManager(context) {
override fun onLayoutChildren(recycler: RecyclerView.Recycler?, state: RecyclerView.State?) {
Log.i("olc", state.toString())
try {
super.onLayoutChildren(recycler, state)
} catch (e: Exception) {
Log.e("olc", "$e.localizedMessage")
}
}
}
Contributor guide
Assessment
This issue has not been assessed yet.