firebase / firebase/codelab-friendlychat-android

LinearLayoutManager tends to crash when new image inserted

Open
#216 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.