don't show the dup-invite alert

It's coming up too often, sometimes several times in a row so that all
must be dismissed. Until I can detect which result from explicit user
action (tapping a URL) rather than duplicated delivery over MQTT and
bluetooth, this is better.
This commit is contained in:
Eric House 2020-09-14 21:12:35 -07:00
parent 755b9e4c1f
commit 9be9caae54
2 changed files with 10 additions and 7 deletions

View file

@ -2338,12 +2338,17 @@ public class GamesListDelegate extends ListDelegateBase
for ( long rowid : rowids.keySet() ) {
if ( nli.forceChannel == rowids.get(rowid) ) {
DbgUtils.printStack( TAG );
if ( BuildConfig.NON_RELEASE ) {
Utils.showToast( m_activity, R.string.dropped_dupe );
}
makeOkOnlyBuilder( R.string.dropped_dupe )
.setActionPair( Action.OPEN_GAME,
R.string.button_open_game )
.setParams( rowid, null ) // null: GameSummary
.show();
final Object[] params = { rowid, null };
post( new Runnable() {
@Override
public void run() {
doOpenGame( params );
}
} );
handled = true;
break;
}

View file

@ -2013,8 +2013,6 @@
email, for the second time. -->
<string name="dropped_dupe">This invitation has already been used
to create a game.</string>
<!-- Button in "Duplicate invitation ignored" alert -->
<string name="button_open_game">Open Game</string>
<string name="cur_menu_marker_fmt">%1$s (in use)</string>
<string name="board_menu_invite">Invite</string>
<string name="enable_nfc">NFC is turned off on this device. You