mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
honor setting for toast showing messages sent and received
This commit is contained in:
parent
1134f71b7b
commit
3d60ee701e
1 changed files with 7 additions and 2 deletions
|
@ -209,7 +209,10 @@ public class SMSService extends Service {
|
|||
}
|
||||
break;
|
||||
case HANDLE:
|
||||
DbgUtils.showf( this, "got %dth sms", ++m_nReceived );
|
||||
++m_nReceived;
|
||||
if ( s_showToasts ) {
|
||||
DbgUtils.showf( this, "got %dth msg", m_nReceived );
|
||||
}
|
||||
String buffer = intent.getStringExtra( BUFFER );
|
||||
String phone = intent.getStringExtra( PHONE );
|
||||
receiveBuffer( buffer, phone );
|
||||
|
@ -479,7 +482,9 @@ public class SMSService extends Service {
|
|||
DbgUtils.logf( "Message \"%s\" of %d bytes sent to %s.",
|
||||
asPublic, asPublic.length(), phone );
|
||||
}
|
||||
DbgUtils.showf( this, "sent %dth msg", s_nSent );
|
||||
if ( s_showToasts ) {
|
||||
DbgUtils.showf( this, "sent %dth msg", s_nSent );
|
||||
}
|
||||
success = true;
|
||||
} catch ( IllegalArgumentException iae ) {
|
||||
DbgUtils.logf( "%s", iae.toString() );
|
||||
|
|
Loading…
Reference in a new issue