From f78af55cd16dc397cc0b1aa36379a7f29e6d2f02 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 30 Jan 2014 06:26:40 -0800 Subject: [PATCH] disable add-to-list button after adding so there's feedback --- .../XWords4/src/org/eehouse/android/xw4/LookupActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/LookupActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/LookupActivity.java index 088690ce5..eb3e1985d 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/LookupActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/LookupActivity.java @@ -138,6 +138,7 @@ public class LookupActivity extends XWListActivity switchState( -1 ); } else if ( view == m_studyButton ) { DBUtils.addToStudyList( this, m_words[m_wordIndex], s_lang ); + m_studyButton.setEnabled( false ); } } @@ -202,8 +203,9 @@ public class LookupActivity extends XWListActivity m_words[m_wordIndex] ); if ( m_studyOn ) { m_studyButton.setVisibility( View.VISIBLE ); + m_studyButton.setEnabled( true ); + m_studyButton.setText( txt ); } - m_studyButton.setText( txt ); break; case STATE_LOOKUP: lookupWord( m_words[m_wordIndex], s_lookupUrls[m_urlIndex] );