From 4aaee07369d0569ec471d5a68a46d564e41dcb48 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 5 Jan 2021 11:47:21 -0800 Subject: [PATCH] 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. --- .../org/eehouse/android/xw4/GamesListDelegate.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java index 8ee61f69c..cef778d82 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java @@ -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() {