From 9dab6bc772edab50d2bfed7580f70a8cc7861a4f Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 21 Mar 2014 19:42:23 -0700 Subject: [PATCH] add studylist menu to lookup selected words -- same as tapping, but maybe easier to discover. --- xwords4/android/XWords4/res/menu/studylist.xml | 6 ++++++ xwords4/android/XWords4/res/values/strings.xml | 3 ++- .../XWords4/src/org/eehouse/android/xw4/StudyList.java | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/res/menu/studylist.xml b/xwords4/android/XWords4/res/menu/studylist.xml index 64903be5a..e0575087f 100644 --- a/xwords4/android/XWords4/res/menu/studylist.xml +++ b/xwords4/android/XWords4/res/menu/studylist.xml @@ -1,6 +1,12 @@ + + Word lookup Select all - Deselect all + Unselect all Words: %d + Look up 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 b97a2baa4..0d0cc96c5 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java @@ -100,6 +100,7 @@ public class StudyList extends XWListActivity Utils.setItemVisible( menu, R.id.slmenu_clear_sel, 0 < nSel ); Utils.setItemVisible( menu, R.id.slmenu_select_all, m_words.length > nSel ); Utils.setItemVisible( menu, R.id.slmenu_deselect_all, 0 < nSel ); + Utils.setItemVisible( menu, R.id.slmenu_lookup_sel, 0 < nSel ); return super.onPrepareOptionsMenu( menu ); } @@ -128,7 +129,9 @@ public class StudyList extends XWListActivity case R.id.slmenu_deselect_all: clearSels(); break; - + case R.id.slmenu_lookup_sel: + launchLookup( getSelWords(), m_langCodes[m_langPosition], true ); + break; default: handled = false; }