mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +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_OKONLY: {
|
||||
int title = (Integer)params[0];
|
||||
if ( 0 != title ) {
|
||||
ab.setTitle( title );
|
||||
}
|
||||
String msg = (String)params[1];
|
||||
ab.setTitle( title )
|
||||
.setMessage( msg )
|
||||
ab.setMessage( msg )
|
||||
.setPositiveButton( android.R.string.ok, null );
|
||||
if ( DlgID.DLG_RETRY == dlgID ) {
|
||||
lstnr = new OnClickListener() {
|
||||
|
|
Loading…
Reference in a new issue