mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
save bitmap after generating it
This commit is contained in:
parent
26a464aae4
commit
3142069adb
1 changed files with 1 additions and 2 deletions
|
@ -298,7 +298,6 @@ public class GameUtils {
|
|||
|
||||
public static Bitmap loadMakeBitmap( Activity activity, long rowid )
|
||||
{
|
||||
DbgUtils.logf( "loadMakeBitmap(): taking snapshot..." );
|
||||
Bitmap thumb = null;
|
||||
GameLock lock = new GameLock( rowid, false );
|
||||
if ( lock.tryLock() ) {
|
||||
|
@ -307,11 +306,11 @@ public class GameUtils {
|
|||
if ( 0 != gamePtr ) {
|
||||
thumb = takeSnapshot( activity, gamePtr, gi );
|
||||
XwJNI.game_dispose( gamePtr );
|
||||
DBUtils.saveThumbnail( activity, lock, thumb );
|
||||
}
|
||||
|
||||
lock.unlock();
|
||||
}
|
||||
DbgUtils.logf( "loadMakeBitmap(): done with snapshot" );
|
||||
return thumb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue