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() {
|
new OnCheckedChangeListener() {
|
||||||
public void onCheckedChanged( CompoundButton buttonView,
|
public void onCheckedChanged( CompoundButton buttonView,
|
||||||
boolean checked ) {
|
boolean checked ) {
|
||||||
View view = findViewById( R.id.timer_set );
|
showTimerSet( checked );
|
||||||
view.setVisibility( checked ? View.VISIBLE : View.GONE );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
check.setOnCheckedChangeListener( lstnr );
|
check.setOnCheckedChangeListener( lstnr );
|
||||||
setChecked( R.id.use_timer, m_gi.timerEnabled );
|
setChecked( R.id.use_timer, m_gi.timerEnabled );
|
||||||
|
showTimerSet( m_gi.timerEnabled );
|
||||||
|
|
||||||
setBoardsizeSpinner();
|
setBoardsizeSpinner();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // loadGame
|
} // 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 )
|
private void getBundledData( Bundle bundle )
|
||||||
{
|
{
|
||||||
if ( null != bundle ) {
|
if ( null != bundle ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue