diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java index 712b46104..9823ab74e 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java @@ -60,12 +60,12 @@ public class InviteView extends ScrollView { Context context = getContext(); - boolean showWho = null != players && 0 < players.length; + boolean haveWho = null != players && 0 < players.length; // top/horizontal group or title first - if ( showWho ) { + if ( haveWho ) { mGroupTab = (RadioGroup)findViewById( R.id.group_tab ); - mGroupTab.check( R.id.radio_who ); + mGroupTab.check( R.id.radio_how ); mGroupTab.setOnCheckedChangeListener( this ); mGroupTab.setVisibility( View.VISIBLE ); } else { @@ -82,7 +82,7 @@ public class InviteView extends ScrollView mHowMeans.put( button, means ); } - if ( showWho ) { + if ( haveWho ) { mGroupWho = (RadioGroup)findViewById( R.id.group_who ); mGroupWho.setOnCheckedChangeListener( this ); for ( String player : players ) { @@ -92,7 +92,7 @@ public class InviteView extends ScrollView mWhoPlayers.put( button, player ); } } - mIsWho = showWho; + mIsWho = false; // start with how showWhoOrHow(); return this; diff --git a/xwords4/android/app/src/main/res/layout/invite_view.xml b/xwords4/android/app/src/main/res/layout/invite_view.xml index 2577b151e..6d1f654c0 100644 --- a/xwords4/android/app/src/main/res/layout/invite_view.xml +++ b/xwords4/android/app/src/main/res/layout/invite_view.xml @@ -29,16 +29,16 @@ android:layout_gravity="center_horizontal" android:visibility="gone" > - +