mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +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
|
<string name="confirm_studylist_clear">Are you sure you want to
|
||||||
remove all the words in this list?\n\n(This action cannot be
|
remove all the words in this list?\n\n(This action cannot be
|
||||||
undone.)</string>
|
undone.)</string>
|
||||||
|
<string name="paste_donef">%d word[s] copied</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -78,6 +78,9 @@ public class StudyList extends XWListActivity
|
||||||
ClipboardManager clipboard = (ClipboardManager)
|
ClipboardManager clipboard = (ClipboardManager)
|
||||||
getSystemService(Context.CLIPBOARD_SERVICE);
|
getSystemService(Context.CLIPBOARD_SERVICE);
|
||||||
clipboard.setText( TextUtils.join( "\n", m_words ) );
|
clipboard.setText( TextUtils.join( "\n", m_words ) );
|
||||||
|
|
||||||
|
String msg = getString( R.string.paste_donef, m_words.length );
|
||||||
|
Utils.showToast( this, msg );
|
||||||
break;
|
break;
|
||||||
case R.id.clear_all:
|
case R.id.clear_all:
|
||||||
showConfirmThen( R.string.confirm_studylist_clear, CLEAR_ACTION );
|
showConfirmThen( R.string.confirm_studylist_clear, CLEAR_ACTION );
|
||||||
|
|
Loading…
Reference in a new issue