mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +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 ) {
|
if ( BuildConfig.NON_RELEASE && null != expl ) {
|
||||||
message += "\n\n" + expl.getUserExpl( m_activity );
|
message += "\n\n" + expl.getUserExpl( m_activity );
|
||||||
}
|
}
|
||||||
ab = ab.setTitle( R.string.query_title )
|
ab = ab.setMessage( message )
|
||||||
.setMessage( message )
|
|
||||||
.setPositiveButton( android.R.string.ok, null );
|
.setPositiveButton( android.R.string.ok, null );
|
||||||
lstnr = new OnClickListener() {
|
lstnr = new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -282,6 +281,15 @@ public class BoardDelegate extends DelegateBase
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ab.setNegativeButton( R.string.button_delete, lstnr );
|
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();
|
dialog = ab.create();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -549,6 +557,10 @@ public class BoardDelegate extends DelegateBase
|
||||||
if ( m_resumeSkipped ) {
|
if ( m_resumeSkipped ) {
|
||||||
doResume( false );
|
doResume( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( m_summary.quashed && !inArchiveGroup() ) {
|
||||||
|
postDeleteOnce( null );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue