show toast on successful paste

This commit is contained in:
Eric House 2014-01-29 07:49:57 -08:00
parent 21f2936e87
commit 11767a41e4
2 changed files with 4 additions and 0 deletions

View file

@ -2216,5 +2216,6 @@
<string name="confirm_studylist_clear">Are you sure you want to
remove all the words in this list?\n\n(This action cannot be
undone.)</string>
<string name="paste_donef">%d word[s] copied</string>
</resources>

View file

@ -78,6 +78,9 @@ public class StudyList extends XWListActivity
ClipboardManager clipboard = (ClipboardManager)
getSystemService(Context.CLIPBOARD_SERVICE);
clipboard.setText( TextUtils.join( "\n", m_words ) );
String msg = getString( R.string.paste_donef, m_words.length );
Utils.showToast( this, msg );
break;
case R.id.clear_all:
showConfirmThen( R.string.confirm_studylist_clear, CLEAR_ACTION );