bmelnychuk / AndroidTreeView

AndroidTreeView. TreeView implementation for android
Apache License 2.0
3k stars 621 forks source link

Stackoverflow exception #108

Open cometThFr opened 7 years ago

cometThFr commented 7 years ago

on android sdk below 5.x (i.e. kitkat, icecream sandwich, ...) when activity/fragment of our app is going into standby mode (=display timeout) a stackoverflow exception is thrown if at least one node of treeview is expanded. only in case of treeview is completly collapsed from the beginning the app can go to saveinstancestate without stackoverflow exception. what can we do to avoid this exception?

LukasJue commented 7 years ago

You could save the state of the TreeView and destroy it, to recreate it when the display is unlocked. You will need to do some work to achieve this, but I think it's the easiest way. But I don't know where the exception can come from, do you have some code/stacktrace?