add toast to confirm that word's been added

This commit is contained in:
Eric House 2014-01-31 07:25:28 -08:00
parent cb574ca156
commit dd38543398
2 changed files with 6 additions and 1 deletions

View file

@ -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>

View file

@ -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 );
}
}