mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45: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
|
public class GamesList extends XWListActivity
|
||||||
implements DispatchNotify.HandleRelaysIface,
|
implements DispatchNotify.HandleRelaysIface,
|
||||||
DBUtils.DBChangeListener,
|
DBUtils.DBChangeListener,
|
||||||
GameListAdapter.LoadItemCB,
|
GameListAdapter.LoadItemCB {
|
||||||
BTService.BTEventListener { // for ping results
|
|
||||||
|
|
||||||
private static final int WARN_NODICT = DlgDelegate.DIALOG_LAST + 1;
|
private static final int WARN_NODICT = DlgDelegate.DIALOG_LAST + 1;
|
||||||
private static final int WARN_NODICT_SUBST = WARN_NODICT + 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 );
|
// PhoneStateListener.LISTEN_DATA_CONNECTION_STATE );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onResume() {
|
|
||||||
super.onResume();
|
|
||||||
BTService.setBTEventListener( this );
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onPause() {
|
|
||||||
BTService.setBTEventListener( null );
|
|
||||||
super.onPause();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop()
|
protected void onStop()
|
||||||
{
|
{
|
||||||
|
@ -430,6 +417,7 @@ public class GamesList extends XWListActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
// BTService.BTEventListener interface
|
// BTService.BTEventListener interface
|
||||||
|
@Override
|
||||||
public void eventOccurred( BTService.BTEvent event, final Object ... args )
|
public void eventOccurred( BTService.BTEvent event, final Object ... args )
|
||||||
{
|
{
|
||||||
switch( event ) {
|
switch( event ) {
|
||||||
|
@ -441,6 +429,9 @@ public class GamesList extends XWListActivity
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
super.eventOccurred( event, args );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue