mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +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;
|
Dialog dialog;
|
||||||
switch ( dlgID ) {
|
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 DLG_RETRY:
|
||||||
case GAME_OVER:
|
case GAME_OVER:
|
||||||
case DLG_CONNSTAT: {
|
case DLG_CONNSTAT: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue