tweak string and logging

This commit is contained in:
Eric House 2020-12-29 15:50:23 -08:00
parent 1a5d967054
commit 2df966b0cd
2 changed files with 9 additions and 8 deletions

View file

@ -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
* reserved.
@ -62,8 +62,9 @@ public class NBSProto {
String phone, short port )
{
addPacketFrom( context, phone, port, buffer );
Log.d( TAG, "got %d bytes from %s", buffer.length, phone );
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,
@ -196,8 +197,8 @@ public class NBSProto {
}
getHelper().postEvent( MultiEvent.SMS_RECEIVE_OK );
} else {
Log.d( TAG, "receiveBuffer(): bogus or incomplete message from %s",
elem.phone );
Log.d( TAG, "processReceive(): bogus or incomplete message "
+ "(%d bytes from %s)", elem.data.length, elem.phone );
}
}
if ( null != elem.nli ) {

View file

@ -2656,10 +2656,10 @@
as a replacement for the relay.</string>
<!-- Title of menuitem that launches Known Players viewer -->
<string name="gamel_menu_knownplyrs">Known Players…</string>
<string name="knowns_expl">These are the remote players
CrossWords has seen enough to know how to invite them quickly to
new games. Their names default to what the remote user has chosen,
but you can edit them to make them easier for you to use.</string>
<string name="knowns_expl">These are the remote players CrossWords
has seen enough to know how to invite them quickly to new
games. Their names default to what the remote player has chosen,
but you can change the names if you want.</string>
<string name="knowns_mqtt_fmt">MQTT DevID: %1$s</string>
<string name="knowns_bt_fmt">Bluetooth name: %1$s</string>
<string name="knowns_bta_fmt">Bluetooth addr: %1$s</string>