igalata / Bubble-Picker

An easy-to-use animation which can be used for content picking for Android
https://medium.com/@igalata13/how-to-create-a-bubble-selection-animation-on-android-627044da4854#.js8nebsx6
1.4k stars 249 forks source link

java.lang.AssertionError in Fragment #89

Closed KentBryan closed 3 years ago

KentBryan commented 3 years ago

Bubble-Picker issue

anantcodes commented 3 years ago

Issue resolved yet?

KentBryan commented 3 years ago

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 .

anantcodes commented 3 years ago

Great

joeywittig commented 3 years ago

@KentBryan Could you explain how you fixed this? Im stuck on this issue..

aman-reso commented 3 years ago

When i am going to one activity to Bubble Activity and again doing same Process the app has crashed

KentBryan commented 3 years ago

@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()
}