From b8528145b3f31120b2fb0ca0393012e4204b04d9 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 4 Jan 2012 18:21:52 -0800 Subject: [PATCH] explicitly store bool as int --- .../android/XWords4/src/org/eehouse/android/xw4/DBUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java index 5904c3da0..4c1a48b72 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -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 ) {