mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
Merge remote-tracking branch 'origin/android_branch' into android_branch
This commit is contained in:
commit
3aa6932f03
1 changed files with 6 additions and 2 deletions
|
@ -577,7 +577,9 @@ public class GameConfig extends XWActivity
|
||||||
|
|
||||||
public void onClick( View view )
|
public void onClick( View view )
|
||||||
{
|
{
|
||||||
if ( m_addPlayerButton == view ) {
|
if ( null == m_gameLock ) {
|
||||||
|
// do nothing; we're on the way out
|
||||||
|
} else if ( m_addPlayerButton == view ) {
|
||||||
int curIndex = m_gi.nPlayers;
|
int curIndex = m_gi.nPlayers;
|
||||||
if ( curIndex < CurGameInfo.MAX_NUM_PLAYERS ) {
|
if ( curIndex < CurGameInfo.MAX_NUM_PLAYERS ) {
|
||||||
m_gi.addPlayer(); // ups nPlayers
|
m_gi.addPlayer(); // ups nPlayers
|
||||||
|
@ -621,7 +623,9 @@ public class GameConfig extends XWActivity
|
||||||
public boolean onKeyDown( int keyCode, KeyEvent event )
|
public boolean onKeyDown( int keyCode, KeyEvent event )
|
||||||
{
|
{
|
||||||
boolean consumed = false;
|
boolean consumed = false;
|
||||||
if ( keyCode == KeyEvent.KEYCODE_BACK ) {
|
if ( null == m_gameLock ) {
|
||||||
|
// Do nothing; we're on our way out
|
||||||
|
} else if ( keyCode == KeyEvent.KEYCODE_BACK ) {
|
||||||
saveChanges();
|
saveChanges();
|
||||||
if ( !m_gameStarted ) { // no confirm needed
|
if ( !m_gameStarted ) { // no confirm needed
|
||||||
applyChanges( true );
|
applyChanges( true );
|
||||||
|
|
Loading…
Reference in a new issue