mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
send cancel if no dict's been chosen
Fix crash when game config opens dict download for result and nothing's chosen. Was sending Activity.RESULT_OK in that case instead of RESULT_CANCELED.
This commit is contained in:
parent
87150c7d91
commit
10a0e33ee4
1 changed files with 5 additions and 5 deletions
|
@ -577,14 +577,14 @@ public class DictsDelegate extends ListDelegateBase
|
|||
if ( handled ) {
|
||||
clearSelections();
|
||||
} else {
|
||||
Intent intent = new Intent();
|
||||
if ( null != m_lastLang ) {
|
||||
if ( null != m_lastLang && null != m_lastDict ) {
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra( RESULT_LAST_LANG, m_lastLang );
|
||||
}
|
||||
if ( null != m_lastDict ) {
|
||||
intent.putExtra( RESULT_LAST_DICT, m_lastDict );
|
||||
setResult( Activity.RESULT_OK, intent );
|
||||
} else {
|
||||
setResult( Activity.RESULT_CANCELED );
|
||||
}
|
||||
setResult( Activity.RESULT_OK, intent );
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue