explicitly store bool as int

This commit is contained in:
Eric House 2012-01-04 18:21:52 -08:00
parent 4a8a52a921
commit b8528145b3

View file

@ -148,7 +148,7 @@ public class DBUtils {
getColumnIndex(DBHelper.LASTPLAY_TIME));
int tmp = cursor.getInt(cursor.
getColumnIndex(DBHelper.GAME_OVER));
summary.gameOver = tmp == 0 ? false : true;
summary.gameOver = tmp != 0;
String scoresStr =
cursor.getString( cursor.getColumnIndex(DBHelper.SCORES));
@ -238,7 +238,7 @@ public class DBUtils {
values.put( DBHelper.PLAYERS,
summary.summarizePlayers() );
values.put( DBHelper.DICTLANG, summary.dictLang );
values.put( DBHelper.GAME_OVER, summary.gameOver );
values.put( DBHelper.GAME_OVER, summary.gameOver? 1 : 0 );
values.put( DBHelper.DICTLIST, summary.dictNames(DICTS_SEP) );
values.put( DBHelper.HASMSGS, summary.pendingMsgLevel );
if ( null != inviteID ) {