mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
show toast on successful paste
This commit is contained in:
parent
21f2936e87
commit
11767a41e4
2 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue