diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java index 4c28cb5d1..c52574756 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameUtils.java @@ -485,9 +485,7 @@ public class GameUtils { } if ( force ) { - HashMap games = - DBUtils.getGamesWithSendsPending( context ); - new ResendTask( context, games, filter, proc ).execute(); + new ResendTask( context, filter, proc ).execute(); System.arraycopy( sendTimes, 0, /* src */ sendTimes, 1, /* dest */ @@ -1264,11 +1262,10 @@ public class GameUtils { private CommsConnType m_filter; private int m_nSent = 0; - public ResendTask( Context context, HashMap games, - CommsConnType filter, ResendDoneProc proc ) + public ResendTask( Context context, CommsConnType filter, + ResendDoneProc proc ) { m_context = context; - m_games = games; m_filter = filter; m_doneProc = proc; } @@ -1276,6 +1273,8 @@ public class GameUtils { @Override protected Void doInBackground( Void... unused ) { + m_games = DBUtils.getGamesWithSendsPending( m_context ); + Iterator iter = m_games.keySet().iterator(); while ( iter.hasNext() ) { long rowid = iter.next();