mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
warn user when opening quashed game
This commit is contained in:
parent
738552da2e
commit
bdfe98a990
1 changed files with 14 additions and 2 deletions
|
@ -271,8 +271,7 @@ public class BoardDelegate extends DelegateBase
|
|||
if ( BuildConfig.NON_RELEASE && null != expl ) {
|
||||
message += "\n\n" + expl.getUserExpl( m_activity );
|
||||
}
|
||||
ab = ab.setTitle( R.string.query_title )
|
||||
.setMessage( message )
|
||||
ab = ab.setMessage( message )
|
||||
.setPositiveButton( android.R.string.ok, null );
|
||||
lstnr = new OnClickListener() {
|
||||
@Override
|
||||
|
@ -282,6 +281,15 @@ public class BoardDelegate extends DelegateBase
|
|||
}
|
||||
};
|
||||
ab.setNegativeButton( R.string.button_delete, lstnr );
|
||||
|
||||
ab.setNeutralButton( R.string.button_archive,
|
||||
new OnClickListener() {
|
||||
@Override
|
||||
public void onClick( DialogInterface dlg,
|
||||
int whichButton ) {
|
||||
showArchiveNA( false );
|
||||
}
|
||||
} );
|
||||
dialog = ab.create();
|
||||
}
|
||||
break;
|
||||
|
@ -549,6 +557,10 @@ public class BoardDelegate extends DelegateBase
|
|||
if ( m_resumeSkipped ) {
|
||||
doResume( false );
|
||||
}
|
||||
|
||||
if ( m_summary.quashed && !inArchiveGroup() ) {
|
||||
postDeleteOnce( null );
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue