infinitered / bluepotion

Like RedPotion, but for Android
MIT License
74 stars 18 forks source link

Guard against a crash when app.dialog isn't given style: :input. #68

Closed skellock closed 9 years ago

skellock commented 9 years ago

The kind of crash that gives you no info.

On Android 4 it dumps the activity. You get Dalvik'd.

On Android 5 it spews misinformation at you.

I actually ended up running it on the device to figure out the real problem.

So strange.

skellock commented 9 years ago

Ended up down a a rabbit hole chasing how to detect arity on the callback. I was way off track. Turns out... don't try to find an ID by nil. :)

GantMan commented 9 years ago

down the a rabbit hole is my daily! I'm always wondering how a 1 line fix takes me so long.