From 7cef230e2cdb4ec99f9f7d149c11cc912e19624a Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 22 Feb 2012 14:06:15 -0800 Subject: [PATCH] BTEventListener is implemented by superclass, so override rather then implement the interface. --- .../org/eehouse/android/xw4/GamesList.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) 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 e975dce38..257c23c10 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -54,8 +54,7 @@ import org.eehouse.android.xw4.jni.*; public class GamesList extends XWListActivity implements DispatchNotify.HandleRelaysIface, DBUtils.DBChangeListener, - GameListAdapter.LoadItemCB, - BTService.BTEventListener { // for ping results + GameListAdapter.LoadItemCB { private static final int WARN_NODICT = DlgDelegate.DIALOG_LAST + 1; private static final int WARN_NODICT_SUBST = WARN_NODICT + 1; @@ -321,18 +320,6 @@ public class GamesList extends XWListActivity // PhoneStateListener.LISTEN_DATA_CONNECTION_STATE ); } - @Override - protected void onResume() { - super.onResume(); - BTService.setBTEventListener( this ); - } - - @Override - protected void onPause() { - BTService.setBTEventListener( null ); - super.onPause(); - } - @Override protected void onStop() { @@ -430,6 +417,7 @@ public class GamesList extends XWListActivity } // BTService.BTEventListener interface + @Override public void eventOccurred( BTService.BTEvent event, final Object ... args ) { switch( event ) { @@ -441,6 +429,9 @@ public class GamesList extends XWListActivity } }); break; + default: + super.eventOccurred( event, args ); + break; } }