add button taking you to Known Players browser

from the new-game alert. It winds up closing that alert without creating
a game, but that's ok for now IMO.
This commit is contained in:
Eric House 2021-01-05 11:47:21 -08:00
parent 3350ca19b7
commit 4aaee07369

View file

@ -950,6 +950,18 @@ public class GamesListDelegate extends ListDelegateBase
} );
}
} );
if ( !standalone && XwJNI.hasKnownPlayers() ) {
ab.setNegativeButton( R.string.gamel_menu_knownplyrs,
new OnClickListener() {
@Override
public void onClick( DialogInterface dlg,
int item ) {
KnownPlayersDelegate
.launchOrAlert( getDelegator(),
GamesListDelegate.this );
}
} );
}
final AlertDialog dialog = ab.create();
view.setCallback( new NewWithKnowns.ButtonChangeListener() {