diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardCanvas.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardCanvas.java index 51b86aec8..9e5fbe9f5 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardCanvas.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardCanvas.java @@ -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 ) 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 314f2c799..f16c92d57 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -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 ); }