This commit is contained in:
Eric House 2019-02-08 13:39:27 -08:00
parent 7ccb576214
commit ef602baa18
2 changed files with 5 additions and 6 deletions

View file

@ -339,10 +339,10 @@ public class BTService extends XWJIService {
Assert.assertNotNull( targetAddr );
String btAddr = getSafeAddr( targetAddr );
if ( null != btAddr && 0 < btAddr.length() ) {
Intent intent = getIntentTo( context, BTAction.SEND );
intent.putExtra( MSG_KEY, buf );
intent.putExtra( ADDR_KEY, btAddr );
intent.putExtra( GAMEID_KEY, gameID );
Intent intent = getIntentTo( context, BTAction.SEND )
.putExtra( MSG_KEY, buf )
.putExtra( ADDR_KEY, btAddr )
.putExtra( GAMEID_KEY, gameID );
enqueueWork( context, intent );
nSent = buf.length;
}

View file

@ -57,8 +57,7 @@ abstract class XWJIService extends JobIntentService {
XWJICmds cmdFrom( Intent intent )
{
int ord = intent.getIntExtra( CMD_KEY, -1 );
return getCmds()[ord];
return cmdFrom( intent, getCmds() );
}
long getTimestamp( Intent intent )