Merge branch 'android_branch' into android_invite

This commit is contained in:
eehouse@eehouse.org 2011-07-21 05:09:58 -07:00 committed by Andy2
commit 86138ec139
2 changed files with 5 additions and 3 deletions

View file

@ -249,7 +249,8 @@ utilTimerFired( XW_UtilCtxt* uc, XWTimerReason why, int handle )
AndUtil* util = (AndUtil*)uc;
TimerStorage* timerStorage = &util->timerStorage[why];
XP_ASSERT( handle == (int)timerStorage );
return (*timerStorage->proc)( timerStorage->closure, why );
return (handle == (int)timerStorage)
&& (*timerStorage->proc)( timerStorage->closure, why );
}
static void

View file

@ -209,6 +209,7 @@ public class GamesList extends XWListActivity
setContentView(R.layout.game_list);
registerForContextMenu( getListView() );
DBUtils.setDBChangeListener( this );
boolean isUpgrade = FirstRunDialog.show( this, false );
PreferenceManager.setDefaultValues( this, R.xml.xwprefs, isUpgrade );
@ -233,9 +234,9 @@ public class GamesList extends XWListActivity
Intent intent = getIntent();
startFirstHasDict( intent );
askDefaultNameIf();
startNewNetGame( intent );
DBUtils.setDBChangeListener( this );
askDefaultNameIf();
} // onCreate
@Override