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.
This commit is contained in:
Andy2 2011-02-14 18:11:55 -08:00
parent 700c58d6dc
commit 0354c3f1d9

View file

@ -448,7 +448,7 @@ public class DBUtils {
SQLiteDatabase db = s_dbHelper.getReadableDatabase(); SQLiteDatabase db = s_dbHelper.getReadableDatabase();
String[] columns = { DBHelper.FILE_NAME }; 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, Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
null, null, null, null, orderBy ); null, null, null, null, orderBy );
if ( 0 < cursor.getCount() ) { if ( 0 < cursor.getCount() ) {