jackg9 / mathdoku

Automatically exported from code.google.com/p/mathdoku
0 stars 0 forks source link

Crash when rotating in Emulator #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Run MathDoku in Emulator (Android 2.2)
2. Rotate Portrait to Landscape - OK
3. Rotate again, Landscape to Portrait - crashes

I found code/comment in GameFile.java, savePreviewImage(GridView view) which 
explains why this happens, but doesn't prevent the crash if in Production mode.

Because I use Production mode to do most of my testing, it would be useful if 
the crash could be prevented regardless of mode.

Original issue reported on code.google.com by em...@srlee.com on 2 Apr 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Resolved in revision 203. It is quite easy to prevent by switching the two if 
statements. This will also catch any other situation in which the preview can 
not be created. I could not reproduce this issue anymore. But better safe than 
sorry.

Original comment by paul.din...@gmail.com on 2 Apr 2013 at 3:45

GoogleCodeExporter commented 9 years ago
Tested Revision 224: No longer crashes on screen rotation in Android 2.2 
emulator

Original comment by em...@srlee.com on 8 Apr 2013 at 4:10