From 11767a41e486bc4a33adfac19d423971a809a4e7 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 29 Jan 2014 07:49:57 -0800 Subject: [PATCH] show toast on successful paste --- xwords4/android/XWords4/res/values/strings.xml | 1 + .../android/XWords4/src/org/eehouse/android/xw4/StudyList.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 8ad25f6c9..c85f7b9aa 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -2216,5 +2216,6 @@ Are you sure you want to remove all the words in this list?\n\n(This action cannot be undone.) + %d word[s] copied diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java index 73831c317..134461313 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java @@ -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 );