mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
BTEventListener is implemented by superclass, so override rather then
implement the interface.
This commit is contained in:
parent
7a21d4c151
commit
7cef230e2c
1 changed files with 5 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue