From 1faf60f6673454704d53df2f2f2018e67ff8b32f Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 29 Dec 2012 12:50:02 -0800 Subject: [PATCH] move updateRow back where it was (prior to some merge); no code change --- .../src/org/eehouse/android/xw4/DBUtils.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 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 06a4a809d..30035bcba 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -1081,23 +1081,6 @@ public class DBUtils { updateRow( context, DBHelper.TABLE_NAME_SUM, gameid, values ); } - private static void updateRow( Context context, String table, - long rowid, ContentValues values ) - { - initDB( context ); - synchronized( s_dbHelper ) { - SQLiteDatabase db = s_dbHelper.getWritableDatabase(); - - String selection = String.format( ROW_ID_FMT, rowid ); - - int result = db.update( table, values, selection, null ); - db.close(); - if ( 0 == result ) { - DbgUtils.logf( "updateRow failed" ); - } - } - } - private static String getChatHistoryStr( Context context, long rowid ) { String result = null; @@ -1441,6 +1424,23 @@ public class DBUtils { } } + private static void updateRow( Context context, String table, + long rowid, ContentValues values ) + { + initDB( context ); + synchronized( s_dbHelper ) { + SQLiteDatabase db = s_dbHelper.getWritableDatabase(); + + String selection = String.format( ROW_ID_FMT, rowid ); + + int result = db.update( table, values, selection, null ); + db.close(); + if ( 0 == result ) { + DbgUtils.logf( "updateRow failed" ); + } + } + } + private static void notifyListeners( long rowid, boolean countChanged ) { synchronized( s_listeners ) {