add new-feature alert for sub-7 trade option

This commit is contained in:
Eric House 2024-02-27 15:28:45 -08:00
parent b791d8eb99
commit f05fea610c
2 changed files with 17 additions and 0 deletions

View file

@ -80,6 +80,7 @@ public class GameConfigDelegate extends DelegateBase
private CheckBox m_gameLockedCheck;
private boolean m_isLocked;
private boolean m_haveClosed;
private boolean mSub7HintShown;
private CommsConnTypeSet m_conTypes;
private Button m_addPlayerButton;
@ -687,6 +688,20 @@ public class GameConfigDelegate extends DelegateBase
setChecked( R.id.trade_sub_seven, m_gi.tradeSub7 );
setChecked( R.id.pick_faceup, m_gi.allowPickTiles );
findViewById( R.id.trade_sub_seven )
.setOnClickListener( new View.OnClickListener() {
@Override
public void onClick( View view ) {
if ( !mSub7HintShown ) {
mSub7HintShown = true;
makeNotAgainBuilder( R.string.key_na_sub7new,
R.string.sub_seven_allowed_sum )
.setTitle( R.string.new_feature_title )
.show();
}
}
} );
setBoardsizeSpinner();
final int[] curSel = {-1};
@ -838,6 +853,7 @@ public class GameConfigDelegate extends DelegateBase
return handled;
}
@Override
public void onClick( View view )
{
if ( isFinishing() ) {

View file

@ -167,6 +167,7 @@
<string name="key_na_newFeatureFilter">key_na_newFeatureFilter</string>
<string name="key_na_customXWD">key_na_customXWD</string>
<string name="key_na_traysize">key_na_traysize</string>
<string name="key_na_sub7new">key_na_sub7new</string>
<string name="key_na_dupstatus_host">key_na_dupstatus_host</string>
<string name="key_na_dupstatus_guest">key_na_dupstatus_guest</string>