disable add-to-list button after adding so there's feedback

This commit is contained in:
Eric House 2014-01-30 06:26:40 -08:00
parent 8e3cbdc1e3
commit f78af55cd1

View file

@ -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] );