mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
cleanup
This commit is contained in:
parent
7ccb576214
commit
ef602baa18
2 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue