diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java index 5f4946b6b..a2179efaa 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -50,7 +50,6 @@ import org.eehouse.android.xw4.jni.*; public class GamesList extends XWListActivity implements DispatchNotify.HandleRelaysIface, - RefreshMsgsTask.RefreshMsgsIface, DBUtils.DBChangeListener { private static final int WARN_NODICT = DlgDelegate.DIALOG_LAST + 1; @@ -248,12 +247,6 @@ public class GamesList extends XWListActivity } ); } - // RefreshMsgsTask.RefreshMsgsIface interface - public void RefreshMsgsResults( String[] relayIDs ) - { - HandleRelaysIDs( relayIDs ); - } - // DBUtils.DBChangeListener interface public void pathSaved( final String path ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RefreshMsgsTask.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/RefreshMsgsTask.java deleted file mode 100644 index e8a832882..000000000 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/RefreshMsgsTask.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- compile-command: "cd ../../../../../; ant install"; -*- */ -/* - * Copyright 2009-2010 by Eric House (xwords@eehouse.org). All - * rights reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -package org.eehouse.android.xw4; - -import android.os.AsyncTask; -import android.content.Context; -import android.app.ProgressDialog; - -public class RefreshMsgsTask extends AsyncTask { - - public interface RefreshMsgsIface { - public void RefreshMsgsResults( String[] relayIDs ); - }; - - private Context m_context; - private ProgressDialog m_progress; - private RefreshMsgsIface m_iface; - - - public RefreshMsgsTask( Context context, RefreshMsgsIface iface ) - { - m_context = context; - m_iface = iface; - - String msg = context.getString( R.string.msgs_progress ); - m_progress = ProgressDialog.show( context, msg, null, true, - true ); - } - - protected String[] doInBackground( Void...unused ) - { - return NetUtils.QueryRelay( m_context ); - } - - protected void onPostExecute( String[] result ) - { - m_progress.cancel(); - m_iface.RefreshMsgsResults( result ); - } -}