mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
tweak string and logging
This commit is contained in:
parent
1a5d967054
commit
2df966b0cd
2 changed files with 9 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* -*- compile-command: "find-and-gradle.sh inXw4Deb"; -*- */
|
/* -*- compile-command: "find-and-gradle.sh inXw4dDeb"; -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 2010 - 2019 by Eric House (xwords@eehouse.org). All rights
|
* Copyright 2010 - 2019 by Eric House (xwords@eehouse.org). All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
@ -62,8 +62,9 @@ public class NBSProto {
|
||||||
String phone, short port )
|
String phone, short port )
|
||||||
{
|
{
|
||||||
addPacketFrom( context, phone, port, buffer );
|
addPacketFrom( context, phone, port, buffer );
|
||||||
|
Log.d( TAG, "got %d bytes from %s", buffer.length, phone );
|
||||||
if ( (0 == (++s_nReceived % TOAST_FREQ)) && showToasts( context ) ) {
|
if ( (0 == (++s_nReceived % TOAST_FREQ)) && showToasts( context ) ) {
|
||||||
DbgUtils.showf( context, "Got msg %d", s_nReceived );
|
DbgUtils.showf( context, "Got NBS msg %d", s_nReceived );
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnStatusHandler.updateStatusIn( context, CommsConnType.COMMS_CONN_SMS,
|
ConnStatusHandler.updateStatusIn( context, CommsConnType.COMMS_CONN_SMS,
|
||||||
|
@ -196,8 +197,8 @@ public class NBSProto {
|
||||||
}
|
}
|
||||||
getHelper().postEvent( MultiEvent.SMS_RECEIVE_OK );
|
getHelper().postEvent( MultiEvent.SMS_RECEIVE_OK );
|
||||||
} else {
|
} else {
|
||||||
Log.d( TAG, "receiveBuffer(): bogus or incomplete message from %s",
|
Log.d( TAG, "processReceive(): bogus or incomplete message "
|
||||||
elem.phone );
|
+ "(%d bytes from %s)", elem.data.length, elem.phone );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( null != elem.nli ) {
|
if ( null != elem.nli ) {
|
||||||
|
|
|
@ -2656,10 +2656,10 @@
|
||||||
as a replacement for the relay.</string>
|
as a replacement for the relay.</string>
|
||||||
<!-- Title of menuitem that launches Known Players viewer -->
|
<!-- Title of menuitem that launches Known Players viewer -->
|
||||||
<string name="gamel_menu_knownplyrs">Known Players…</string>
|
<string name="gamel_menu_knownplyrs">Known Players…</string>
|
||||||
<string name="knowns_expl">These are the remote players
|
<string name="knowns_expl">These are the remote players CrossWords
|
||||||
CrossWords has seen enough to know how to invite them quickly to
|
has seen enough to know how to invite them quickly to new
|
||||||
new games. Their names default to what the remote user has chosen,
|
games. Their names default to what the remote player has chosen,
|
||||||
but you can edit them to make them easier for you to use.</string>
|
but you can change the names if you want.</string>
|
||||||
<string name="knowns_mqtt_fmt">MQTT DevID: %1$s</string>
|
<string name="knowns_mqtt_fmt">MQTT DevID: %1$s</string>
|
||||||
<string name="knowns_bt_fmt">Bluetooth name: %1$s</string>
|
<string name="knowns_bt_fmt">Bluetooth name: %1$s</string>
|
||||||
<string name="knowns_bta_fmt">Bluetooth addr: %1$s</string>
|
<string name="knowns_bta_fmt">Bluetooth addr: %1$s</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue