mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
add toast to confirm that word's been added
This commit is contained in:
parent
cb574ca156
commit
dd38543398
2 changed files with 6 additions and 1 deletions
|
@ -2215,6 +2215,7 @@
|
|||
<string name="confirm_studylist_clear">Are you sure you want to
|
||||
delete this list?\n\n(This action cannot be undone.)</string>
|
||||
<string name="paste_donef">%d word[s] copied</string>
|
||||
<string name="add_donef">%s added to list</string>
|
||||
<string name="studylist_titlef">Studylist for %s</string>
|
||||
|
||||
<string name="study_langpick">Your words for:</string>
|
||||
|
|
|
@ -137,8 +137,12 @@ public class LookupActivity extends XWListActivity
|
|||
if ( view == m_doneButton ) {
|
||||
switchState( -1 );
|
||||
} else if ( view == m_studyButton ) {
|
||||
DBUtils.addToStudyList( this, m_words[m_wordIndex], s_lang );
|
||||
String word = m_words[m_wordIndex];
|
||||
DBUtils.addToStudyList( this, word, s_lang );
|
||||
m_studyButton.setEnabled( false );
|
||||
|
||||
String msg = getString( R.string.add_donef, word );
|
||||
Utils.showToast( this, msg );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue