mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
regression: don't offer to archive archived game
This commit is contained in:
parent
1869557f12
commit
4f8ae02bbe
1 changed files with 4 additions and 3 deletions
|
@ -170,15 +170,16 @@ public class GameOverAlert extends XWDialogFragment
|
|||
|
||||
public void pendingCountChanged( int newCount )
|
||||
{
|
||||
if ( 0 == newCount && mHasPending ) {
|
||||
mHasPending = false;
|
||||
boolean hasPending = 0 < newCount;
|
||||
if ( hasPending != mHasPending ) {
|
||||
mHasPending = hasPending;
|
||||
updateForPending();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateForPending()
|
||||
{
|
||||
mArchiveBox.setVisibility( mHasPending ? View.GONE : View.VISIBLE );
|
||||
mArchiveBox.setVisibility( mHasPending || mInArchive ? View.GONE : View.VISIBLE );
|
||||
Utils.enableAlertButton( mDialog, AlertDialog.BUTTON_NEGATIVE, !mHasPending );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue