mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix crash: make thumbnail BEFORE closing game
This commit is contained in:
parent
83bd5f773c
commit
07a0e0ed93
1 changed files with 3 additions and 2 deletions
|
@ -746,14 +746,15 @@ public class GameUtils {
|
||||||
|
|
||||||
// update gi to reflect changes due to messages
|
// update gi to reflect changes due to messages
|
||||||
XwJNI.game_getGi( gamePtr, gi );
|
XwJNI.game_getGi( gamePtr, gi );
|
||||||
saveGame( context, gamePtr, gi, lock, false );
|
|
||||||
summarizeAndClose( context, lock, gamePtr, gi, feedImpl );
|
|
||||||
|
|
||||||
if ( draw && XWPrefs.getThumbEnabled( context ) ) {
|
if ( draw && XWPrefs.getThumbEnabled( context ) ) {
|
||||||
Bitmap bitmap = takeSnapshot( context, gamePtr, gi );
|
Bitmap bitmap = takeSnapshot( context, gamePtr, gi );
|
||||||
DBUtils.saveThumbnail( context, lock, bitmap );
|
DBUtils.saveThumbnail( context, lock, bitmap );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
saveGame( context, gamePtr, gi, lock, false );
|
||||||
|
summarizeAndClose( context, lock, gamePtr, gi, feedImpl );
|
||||||
|
|
||||||
int flags = setFromFeedImpl( feedImpl );
|
int flags = setFromFeedImpl( feedImpl );
|
||||||
if ( GameSummary.MSG_FLAGS_NONE != flags ) {
|
if ( GameSummary.MSG_FLAGS_NONE != flags ) {
|
||||||
draw = true;
|
draw = true;
|
||||||
|
|
Loading…
Reference in a new issue