mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
explicitly store bool as int
This commit is contained in:
parent
4a8a52a921
commit
b8528145b3
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ public class DBUtils {
|
||||||
getColumnIndex(DBHelper.LASTPLAY_TIME));
|
getColumnIndex(DBHelper.LASTPLAY_TIME));
|
||||||
int tmp = cursor.getInt(cursor.
|
int tmp = cursor.getInt(cursor.
|
||||||
getColumnIndex(DBHelper.GAME_OVER));
|
getColumnIndex(DBHelper.GAME_OVER));
|
||||||
summary.gameOver = tmp == 0 ? false : true;
|
summary.gameOver = tmp != 0;
|
||||||
|
|
||||||
String scoresStr =
|
String scoresStr =
|
||||||
cursor.getString( cursor.getColumnIndex(DBHelper.SCORES));
|
cursor.getString( cursor.getColumnIndex(DBHelper.SCORES));
|
||||||
|
@ -238,7 +238,7 @@ public class DBUtils {
|
||||||
values.put( DBHelper.PLAYERS,
|
values.put( DBHelper.PLAYERS,
|
||||||
summary.summarizePlayers() );
|
summary.summarizePlayers() );
|
||||||
values.put( DBHelper.DICTLANG, summary.dictLang );
|
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.DICTLIST, summary.dictNames(DICTS_SEP) );
|
||||||
values.put( DBHelper.HASMSGS, summary.pendingMsgLevel );
|
values.put( DBHelper.HASMSGS, summary.pendingMsgLevel );
|
||||||
if ( null != inviteID ) {
|
if ( null != inviteID ) {
|
||||||
|
|
Loading…
Reference in a new issue