mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-08 20:46:12 +01:00
cleanup
This commit is contained in:
parent
fe721edb97
commit
3023ae1af6
2 changed files with 5 additions and 6 deletions
|
@ -339,10 +339,10 @@ public class BTService extends XWJIService {
|
||||||
Assert.assertNotNull( targetAddr );
|
Assert.assertNotNull( targetAddr );
|
||||||
String btAddr = getSafeAddr( targetAddr );
|
String btAddr = getSafeAddr( targetAddr );
|
||||||
if ( null != btAddr && 0 < btAddr.length() ) {
|
if ( null != btAddr && 0 < btAddr.length() ) {
|
||||||
Intent intent = getIntentTo( context, BTAction.SEND );
|
Intent intent = getIntentTo( context, BTAction.SEND )
|
||||||
intent.putExtra( MSG_KEY, buf );
|
.putExtra( MSG_KEY, buf )
|
||||||
intent.putExtra( ADDR_KEY, btAddr );
|
.putExtra( ADDR_KEY, btAddr )
|
||||||
intent.putExtra( GAMEID_KEY, gameID );
|
.putExtra( GAMEID_KEY, gameID );
|
||||||
enqueueWork( context, intent );
|
enqueueWork( context, intent );
|
||||||
nSent = buf.length;
|
nSent = buf.length;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,7 @@ abstract class XWJIService extends JobIntentService {
|
||||||
|
|
||||||
XWJICmds cmdFrom( Intent intent )
|
XWJICmds cmdFrom( Intent intent )
|
||||||
{
|
{
|
||||||
int ord = intent.getIntExtra( CMD_KEY, -1 );
|
return cmdFrom( intent, getCmds() );
|
||||||
return getCmds()[ord];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long getTimestamp( Intent intent )
|
long getTimestamp( Intent intent )
|
||||||
|
|
Loading…
Add table
Reference in a new issue