don't open game just because it was created

Posting a notification is enough. And existing code already handles the
missing dict case, so GamesListDelegate doesn't even need to know.
This commit is contained in:
Eric House 2019-02-13 08:46:06 -08:00
parent 54fb43ec62
commit 997aad84ff

View file

@ -1241,27 +1241,6 @@ public class GamesListDelegate extends ListDelegateBase
return selected; return selected;
} }
// BTService.MultiEventListener interface
public void eventOccurred( MultiService.MultiEvent event,
final Object ... args )
{
switch( event ) {
case BT_GAME_CREATED:
post( new Runnable() {
public void run() {
long rowid = (Long)args[0];
if ( checkWarnNoDict( rowid ) ) {
launchGame( rowid, true );
}
}
});
break;
default:
super.eventOccurred( event, args );
break;
}
}
// DlgDelegate.DlgClickNotify interface // DlgDelegate.DlgClickNotify interface
@Override @Override
public boolean onPosButton( Action action, Object[] params ) public boolean onPosButton( Action action, Object[] params )