mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
e631d57e9b
Includes a hack in DBAlert that's required I think because GameConfigDelegate is launched "for result". onCreateDialog() always fails after a rotation the first time because GameConfigDelegate isn't there to have its makeDialog() dispatched to. So it puts up a dummy alert and then post()s code that is successful in calling makeDialog() to get an alert from GameConfigDelegate that can replace the dummy. Nothing shows on the screen on simulator anyway. The major problem remaining is that blocking alerts in BoardDelegate are recreated after rotation but the thread that was blocking has been freed so nothing can be done after the new alert returns. E.g. blank tile picker will be posted again, user will pick a tile, but the common code's not in a state to do anything with that choice (which cannot even be "returned.") Options are to find a way to make the JNIThread survive the configuration change without unblocking or to rewrite all the common code to not expect return values from util_ methods. This commit is not well tested, and diffs don't allow a thorough check of the conversion of each DlgID type. |
||
---|---|---|
.. | ||
android | ||
common | ||
dawg | ||
debian | ||
linux | ||
relay | ||
scripts | ||
tests | ||
wince | ||
Makefile |