mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +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
|
||||
XwJNI.game_getGi( gamePtr, gi );
|
||||
saveGame( context, gamePtr, gi, lock, false );
|
||||
summarizeAndClose( context, lock, gamePtr, gi, feedImpl );
|
||||
|
||||
if ( draw && XWPrefs.getThumbEnabled( context ) ) {
|
||||
Bitmap bitmap = takeSnapshot( context, gamePtr, gi );
|
||||
DBUtils.saveThumbnail( context, lock, bitmap );
|
||||
}
|
||||
|
||||
saveGame( context, gamePtr, gi, lock, false );
|
||||
summarizeAndClose( context, lock, gamePtr, gi, feedImpl );
|
||||
|
||||
int flags = setFromFeedImpl( feedImpl );
|
||||
if ( GameSummary.MSG_FLAGS_NONE != flags ) {
|
||||
draw = true;
|
||||
|
|
Loading…
Reference in a new issue