You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you fire up an alert dialog and rotate the phone you'll get this:
Exception raised: NoMethodError: undefined method `[]' for nil:NilClass
from alert_dialog.rb:47 in `onCreateDialog'
so it looks likeonCreateDialog is getting called again after the rotation, but @options is gone? Not sure how that's possible. If it's calling the method on the instance shouldn't the instance variable still be around?
Ah but it's a new instance . . . interesting. When I put a mp self.inspect in the onCreateDialog method then I find that before rotation I get this:
#<AlertDialog:0x72e00019>
and after I rotate, just before the crash, I get this
#<AlertDialog:0x30000019>
I'll be looking around and seeing if this is something I can fix. In the meantime, if someone else has seen this kind of thing before (new class instances on rotation) and knows the right path forward, please let me know! :)
The text was updated successfully, but these errors were encountered:
If you fire up an alert dialog and rotate the phone you'll get this:
so it looks like
onCreateDialog
is getting called again after the rotation, but@options
is gone? Not sure how that's possible. If it's calling the method on the instance shouldn't the instance variable still be around?Ah but it's a new instance . . . interesting. When I put a
mp self.inspect
in theonCreateDialog
method then I find that before rotation I get this:and after I rotate, just before the crash, I get this
I'll be looking around and seeing if this is something I can fix. In the meantime, if someone else has seen this kind of thing before (new class instances on rotation) and knows the right path forward, please let me know! :)
The text was updated successfully, but these errors were encountered: