set trade mode in canvas where it'll do some good

This commit is contained in:
Eric House 2013-11-10 06:41:43 -08:00
parent d598dde86e
commit 82a82b5ae1
2 changed files with 8 additions and 2 deletions

View file

@ -176,6 +176,11 @@ public class BoardCanvas extends Canvas implements DrawCtx {
return m_trayOwner;
}
public void setInTrade( boolean inTrade )
{
m_inTrade = inTrade;
}
// DrawCtxt interface implementation
public boolean scoreBegin( Rect rect, int numPlayers, int[] scores,
int remCount )

View file

@ -57,7 +57,6 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
private int m_layoutWidth;
private int m_layoutHeight;
private BoardCanvas m_canvas; // owns the bitmap
private boolean m_inTrade = false;
private JNIThread m_jniThread;
private XWActivity m_parent;
private Rect m_boundsScratch;
@ -319,7 +318,9 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
public void setInTrade( boolean inTrade )
{
m_inTrade = inTrade;
if ( null != m_canvas ) {
m_canvas.setInTrade( inTrade );
}
m_jniThread.handle( JNIThread.JNICmd.CMD_INVALALL );
}