call through to canvas for current score to correctly update menu

This commit is contained in:
Eric House 2013-11-12 06:40:40 -08:00
parent f14be36bbc
commit e2aea4a39e
2 changed files with 6 additions and 2 deletions

View file

@ -176,6 +176,11 @@ public class BoardCanvas extends Canvas implements DrawCtx {
return m_trayOwner;
}
public int curPending()
{
return m_pendingScore;
}
public void setInTrade( boolean inTrade )
{
if ( m_inTrade != inTrade ) {

View file

@ -60,7 +60,6 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
private JNIThread m_jniThread;
private XWActivity m_parent;
private Rect m_boundsScratch;
private int m_pendingScore;
private boolean m_measuredFromDims = false;
private BoardDims m_dims;
private CommsAddrRec.CommsConnType m_connType =
@ -337,7 +336,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
public int curPending()
{
return m_pendingScore;
return null == m_canvas? 0 : m_canvas.curPending();
}
private int getSpacing( MotionEvent event )