mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-07 20:46:17 +01:00
fix crash showing dialog without title
This commit is contained in:
parent
98cb3b4930
commit
76299a34f9
1 changed files with 4 additions and 2 deletions
|
@ -222,9 +222,11 @@ public class BoardDelegate extends DelegateBase
|
||||||
case DLG_RETRY:
|
case DLG_RETRY:
|
||||||
case DLG_OKONLY: {
|
case DLG_OKONLY: {
|
||||||
int title = (Integer)params[0];
|
int title = (Integer)params[0];
|
||||||
|
if ( 0 != title ) {
|
||||||
|
ab.setTitle( title );
|
||||||
|
}
|
||||||
String msg = (String)params[1];
|
String msg = (String)params[1];
|
||||||
ab.setTitle( title )
|
ab.setMessage( msg )
|
||||||
.setMessage( msg )
|
|
||||||
.setPositiveButton( android.R.string.ok, null );
|
.setPositiveButton( android.R.string.ok, null );
|
||||||
if ( DlgID.DLG_RETRY == dlgID ) {
|
if ( DlgID.DLG_RETRY == dlgID ) {
|
||||||
lstnr = new OnClickListener() {
|
lstnr = new OnClickListener() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue