From d598dde86ee6b1a94f032489fe56ca3c4b9fc122 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 10 Nov 2013 06:41:12 -0800 Subject: [PATCH] inval view even if board_draw says there's more drawing to do -- as there's probably still a lot that got drawn. --- .../org/eehouse/android/xw4/BoardView.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java index 3ce521820..314f2c799 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -291,18 +291,17 @@ public class BoardView extends View implements BoardHandler, SyncedDraw { DbgUtils.logf( "doJNIDraw() called" ); boolean drew; synchronized( this ) { - drew = XwJNI.board_draw( m_jniGamePtr ); - } - if ( drew ) { - // Force update now that we have bits to copy - // m_parent.runOnUiThread( new Runnable() { - // public void run() { - // invalidate(); - // } - // }); - } else { - DbgUtils.logf( "doJNIDraw: draw not complete" ); + if ( !XwJNI.board_draw( m_jniGamePtr ) ) { + DbgUtils.logf( "doJNIDraw: draw not complete" ); + } } + + // Force update now that we have bits to copy + m_parent.runOnUiThread( new Runnable() { + public void run() { + invalidate(); + } + }); } public void dimsChanged( BoardDims dims )