This commit is contained in:
Eric House 2019-01-09 18:18:27 -08:00
parent 302a3a5025
commit 011825e4a9

View file

@ -1779,7 +1779,7 @@ public class GamesListDelegate extends ListDelegateBase
return handled; return handled;
} }
private boolean handleSelGamesItem( int itemID, final long[] selRowIDs ) private boolean handleSelGamesItem( int itemID, long[] selRowIDs )
{ {
boolean handled = true; boolean handled = true;
boolean dropSels = false; boolean dropSels = false;
@ -1818,8 +1818,9 @@ public class GamesListDelegate extends ListDelegateBase
.show(); .show();
break; break;
case R.id.games_game_copy: case R.id.games_game_copy:
final long selRowID = selRowIDs[0];
final GameSummary smry = GameUtils.getSummary( m_activity, final GameSummary smry = GameUtils.getSummary( m_activity,
selRowIDs[0] ); selRowID );
if ( smry.inRelayGame() ) { if ( smry.inRelayGame() ) {
makeOkOnlyBuilder( R.string.no_copy_network ).show(); makeOkOnlyBuilder( R.string.no_copy_network ).show();
} else { } else {
@ -1828,7 +1829,7 @@ public class GamesListDelegate extends ListDelegateBase
public void run() { public void run() {
Activity self = m_activity; Activity self = m_activity;
byte[] stream = byte[] stream =
GameUtils.savedGame( self, selRowIDs[0] ); GameUtils.savedGame( self, selRowID );
long groupID = XWPrefs long groupID = XWPrefs
.getDefaultNewGameGroup( self ); .getDefaultNewGameGroup( self );
try ( GameLock lock = try ( GameLock lock =