mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
fix crash when no radio's been chosen
This commit is contained in:
parent
97962fceed
commit
63262ba9b3
1 changed files with 22 additions and 20 deletions
|
@ -128,6 +128,7 @@ public class NewWithKnowns extends LinearLayout
|
|||
|
||||
void onButtonPressed( ButtonCallbacks procs )
|
||||
{
|
||||
if ( 0 != mCurRadio ) {
|
||||
Context context = getContext();
|
||||
String gameName = gameName();
|
||||
switch ( mCurRadio ) {
|
||||
|
@ -143,13 +144,14 @@ public class NewWithKnowns extends LinearLayout
|
|||
procs.onStartGame( gameName, mStandalone, true );
|
||||
break;
|
||||
default:
|
||||
Assert.failDbg();
|
||||
Assert.failDbg(); // fired
|
||||
break;
|
||||
}
|
||||
|
||||
String key = mStandalone ? KP_PREVSOLO_KEY : KP_PREVNET_KEY;
|
||||
DBUtils.setIntFor( context, key, mCurRadio );
|
||||
}
|
||||
}
|
||||
|
||||
private String gameName()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue