Skip to content

LinearLayoutManager tends to crash when new image inserted #216

Description

@Bela-Szilagyi

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")
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions