diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java index 181f89d6b..60f0b95cc 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java @@ -46,7 +46,6 @@ public class GameListAdapter extends XWListAdapter { private Context m_context; private LayoutInflater m_factory; private int m_fieldID; - private static final int TURN_COLOR = 0x7F00FF00; private class ViewInfo implements View.OnClickListener { private View m_view; @@ -79,7 +78,7 @@ public class GameListAdapter extends XWListAdapter { m_name.setBackgroundColor( android.R.color.transparent ); if ( !m_expanded ) { if ( m_haveTurnLocal ) { - m_name.setBackgroundColor( TURN_COLOR ); + m_name.setBackgroundColor( Utils.TURN_COLOR ); } else if ( m_haveTurn ) { m_name.setBackgroundResource( R.drawable.green_border ); } @@ -185,7 +184,7 @@ public class GameListAdapter extends XWListAdapter { haveTurn = true; if ( isLocal[0] ) { haveTurnLocal = true; - tmp.setBackgroundColor( TURN_COLOR ); + tmp.setBackgroundColor( Utils.TURN_COLOR ); } else { tmp.setBackgroundResource( R.drawable.green_border ); } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index 074d89e55..be266e1da 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -48,6 +48,8 @@ import junit.framework.Assert; import org.eehouse.android.xw4.jni.*; public class Utils { + public static final int TURN_COLOR = 0x7F00FF00; + private static final String DB_PATH = "XW_GAMES"; private static final String HIDDEN_PREFS = "xwprefs_hidden"; private static final String SHOWN_VERSION_KEY = "SHOWN_VERSION_KEY";