mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
fix class cast exception
Problem with subverting type checking is compile time errors become runtime...
This commit is contained in:
parent
83f7a9cec1
commit
9211d6b765
1 changed files with 11 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue