BTEventListener is implemented by superclass, so override rather then

implement the interface.
This commit is contained in:
Eric House 2012-02-22 14:06:15 -08:00
parent 7a21d4c151
commit 7cef230e2c

View file

@ -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;
}
}