From 011825e4a93b443a8e1ebcf170f59626129513f1 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 9 Jan 2019 18:18:27 -0800 Subject: [PATCH] cleanup --- .../java/org/eehouse/android/xw4/GamesListDelegate.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 e4c7eae9d..2b1504fa2 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 @@ -1779,7 +1779,7 @@ public class GamesListDelegate extends ListDelegateBase return handled; } - private boolean handleSelGamesItem( int itemID, final long[] selRowIDs ) + private boolean handleSelGamesItem( int itemID, long[] selRowIDs ) { boolean handled = true; boolean dropSels = false; @@ -1818,8 +1818,9 @@ public class GamesListDelegate extends ListDelegateBase .show(); break; case R.id.games_game_copy: + final long selRowID = selRowIDs[0]; final GameSummary smry = GameUtils.getSummary( m_activity, - selRowIDs[0] ); + selRowID ); if ( smry.inRelayGame() ) { makeOkOnlyBuilder( R.string.no_copy_network ).show(); } else { @@ -1828,7 +1829,7 @@ public class GamesListDelegate extends ListDelegateBase public void run() { Activity self = m_activity; byte[] stream = - GameUtils.savedGame( self, selRowIDs[0] ); + GameUtils.savedGame( self, selRowID ); long groupID = XWPrefs .getDefaultNewGameGroup( self ); try ( GameLock lock =