From 0354c3f1d9ddd29e512de3d37a4ee62437036ea0 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 14 Feb 2011 18:11:55 -0800 Subject: [PATCH] sort by creation time rather than lastsaved time. This is a temporary workaround to fix a bug where the UI isn't updating often enough and sometimes delete or other position-based long-tap menu actions on the list act on the wrong game. This gives an order that won't change. Revisit later if a more dynamic order is desired. --- .../android/XWords4/src/org/eehouse/android/xw4/DBUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9716a0733..e65b0d1cd 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -448,7 +448,7 @@ public class DBUtils { SQLiteDatabase db = s_dbHelper.getReadableDatabase(); String[] columns = { DBHelper.FILE_NAME }; - String orderBy = DBHelper.LASTPLAY_TIME + " DESC"; + String orderBy = DBHelper.CREATE_TIME + " DESC"; Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns, null, null, null, null, orderBy ); if ( 0 < cursor.getCount() ) {