mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
reveal timer start field if timer's enabled
Rotation was hiding it once enabled.
This commit is contained in:
parent
5b7559c223
commit
4668beee78
1 changed files with 8 additions and 2 deletions
|
@ -622,18 +622,24 @@ public class GameConfigDelegate extends DelegateBase
|
|||
new OnCheckedChangeListener() {
|
||||
public void onCheckedChanged( CompoundButton buttonView,
|
||||
boolean checked ) {
|
||||
View view = findViewById( R.id.timer_set );
|
||||
view.setVisibility( checked ? View.VISIBLE : View.GONE );
|
||||
showTimerSet( checked );
|
||||
}
|
||||
};
|
||||
check.setOnCheckedChangeListener( lstnr );
|
||||
setChecked( R.id.use_timer, m_gi.timerEnabled );
|
||||
showTimerSet( m_gi.timerEnabled );
|
||||
|
||||
setBoardsizeSpinner();
|
||||
}
|
||||
}
|
||||
} // loadGame
|
||||
|
||||
private void showTimerSet( boolean show )
|
||||
{
|
||||
View view = findViewById( R.id.timer_set );
|
||||
view.setVisibility( show ? View.VISIBLE : View.GONE );
|
||||
}
|
||||
|
||||
private void getBundledData( Bundle bundle )
|
||||
{
|
||||
if ( null != bundle ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue