From 7876e2cdedbd42c1634d2e4c3153363ddbd5f683 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 23 Nov 2013 12:17:21 -0800 Subject: [PATCH] use constant --- .../XWords4/src/org/eehouse/android/xw4/DBUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 a8ecd6462..a6d8b4264 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -64,7 +64,7 @@ public class DBUtils { private static final String NAME_FMT = "%s='%s'"; private static final String NAMELOC_FMT = "%s='%s' AND %s=%d"; - private static long s_cachedRowID = -1; + private static long s_cachedRowID = ROWID_NOTFOUND; private static byte[] s_cachedBytes = null; public static interface DBChangeListener { @@ -469,7 +469,7 @@ public class DBUtils { values, null, null ); db.close(); - notifyListeners( -1, true ); + notifyListeners( ROWID_NOTFOUND, false ); } } } @@ -779,7 +779,7 @@ public class DBUtils { } return lock; - } + } // saveNewGame public static long saveGame( Context context, GameLock lock, byte[] bytes, boolean setCreate )