fix class cast exception

Problem with subverting type checking is compile time errors become
runtime...
This commit is contained in:
Eric House 2017-03-07 07:08:48 -08:00
parent 83f7a9cec1
commit 9211d6b765

View file

@ -181,7 +181,17 @@ public class BoardDelegate extends DelegateBase
Dialog dialog;
switch ( dlgID ) {
case DLG_OKONLY:
case DLG_OKONLY: {
int title = (Integer)params[0];
String msg = (String)params[1];
dialog = ab
.setTitle( title )
.setMessage( msg )
.setPositiveButton( android.R.string.ok, null )
.create();
}
break;
case DLG_RETRY:
case GAME_OVER:
case DLG_CONNSTAT: {