mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
don't assume there was only one missing after downloading first
missing dict
This commit is contained in:
parent
d308baca8c
commit
4f22caafe9
1 changed files with 10 additions and 6 deletions
|
@ -1767,14 +1767,18 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
{
|
||||
boolean madeGame = DBUtils.ROWID_NOTFOUND != m_missingDictRowId;
|
||||
if ( madeGame ) {
|
||||
if ( R.id.games_game_reset == m_missingDictMenuId ) {
|
||||
long[] rowIDs = { m_missingDictRowId };
|
||||
doConfirmReset( rowIDs );
|
||||
} else {
|
||||
GameUtils.launchGame( m_activity, m_missingDictRowId );
|
||||
}
|
||||
// save in case checkWarnNoDict needs to set them
|
||||
long rowID = m_missingDictRowId;
|
||||
int menuID = m_missingDictMenuId;
|
||||
m_missingDictRowId = DBUtils.ROWID_NOTFOUND;
|
||||
m_missingDictMenuId = -1;
|
||||
|
||||
if ( R.id.games_game_reset == menuID ) {
|
||||
long[] rowIDs = { rowID };
|
||||
doConfirmReset( rowIDs );
|
||||
} else if ( checkWarnNoDict( rowID ) ) {
|
||||
GameUtils.launchGame( m_activity, rowID );
|
||||
}
|
||||
}
|
||||
return madeGame;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue