Avoid relocking game after downloading: don't set lock checkbox

in onResume() unless it's the first time through.
This commit is contained in:
Andy2 2011-04-23 07:51:31 -07:00
parent 3c30cbd23a
commit 20ec6dd011

View file

@ -417,10 +417,13 @@ public class GameConfig extends XWActivity
m_giOrig.setInProgress( m_gameStarted );
if ( m_gameStarted ) {
m_gameLockedCheck = (CheckBox)findViewById( R.id.game_locked_check );
m_gameLockedCheck.setVisibility( View.VISIBLE );
m_gameLockedCheck.setChecked( true );
m_gameLockedCheck.setOnClickListener( this );
if ( null == m_gameLockedCheck ) {
m_gameLockedCheck =
(CheckBox)findViewById( R.id.game_locked_check );
m_gameLockedCheck.setVisibility( View.VISIBLE );
m_gameLockedCheck.setChecked( true );
m_gameLockedCheck.setOnClickListener( this );
}
handleLockedChange();
}