don't open group just because added game

A group that's closed stays closed even if a game's added to it. The
change flushed out a bug where the groups cache wasn't being invalided
on a game move, so fix that too.
This commit is contained in:
Eric House 2017-01-24 06:53:54 -08:00
parent 9cab7d916c
commit b8e8c176ed
2 changed files with 1 additions and 1 deletions

View file

@ -1801,6 +1801,7 @@ public class DBUtils {
ContentValues values = new ContentValues();
values.put( DBHelper.GROUPID, groupID );
updateRow( context, DBHelper.TABLE_NAME_SUM, gameid, values );
invalGroupsCache();
}
private static String getChatHistoryStr( Context context, long rowid )

View file

@ -792,7 +792,6 @@ public class GamesListDelegate extends ListDelegateBase
for ( long rowid : self.m_rowids ) {
DBUtils.moveGame( self.m_activity, rowid, gid );
}
DBUtils.setGroupExpanded( self.m_activity, gid, true );
self.mkListAdapter();
}
};