fix crash showing dialog without title

This commit is contained in:
Eric House 2022-04-22 11:12:27 -07:00
parent 98cb3b4930
commit 76299a34f9

View file

@ -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() {