mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
disable add-to-list button after adding so there's feedback
This commit is contained in:
parent
8e3cbdc1e3
commit
f78af55cd1
1 changed files with 3 additions and 1 deletions
|
@ -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] );
|
||||
|
|
Loading…
Reference in a new issue