Closed KentBryan closed 3 years ago
Issue resolved yet?
Yes, it's working now
On Sat, May 15, 2021, 11:09 PM Anant Kanchan @.***> wrote:
Issue resolved yet?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igalata/Bubble-Picker/issues/89#issuecomment-841677530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AICZOGBITEHPUCBVAY22ZM3TN2FDRANCNFSM43JY4LGQ .
Great
@KentBryan Could you explain how you fixed this? Im stuck on this issue..
When i am going to one activity to Bubble Activity and again doing same Process the app has crashed
@joeywittig my solution in crashing issue, is to revise some line of codes under "physics" directory
physics -> Engine -> then search the function "clear"
This is my solution, just replace the code inside that function to this.
borders.forEach { if(world.isLocked) world.destroyBody(it.itemBody) }
bodies.forEach { if(world.isLocked)world.destroyBody(it.physicalBody) }
borders.clear()
bodies.clear()
your function "clear" should be like this:
fun clear() {
borders.forEach { if(world.isLocked) world.destroyBody(it.itemBody) }
bodies.forEach { if(world.isLocked)world.destroyBody(it.physicalBody) }
borders.clear()
bodies.clear()
}