display BT Mac addr in About dialog (debug only)

It's useful so why not.
This commit is contained in:
Eric House 2020-12-09 16:21:19 -08:00
parent ac25baedd1
commit 35db73e4e4
2 changed files with 9 additions and 0 deletions

View file

@ -75,6 +75,12 @@ public class AboutAlert extends XWDialogFragment {
}
str = getString( R.string.about_devid_fmt, XwJNI.dvc_getMQTTDevID(null) );
if ( BuildConfig.NON_RELEASE ) {
String[] pair = BTUtils.getBTNameAndAddress();
if ( null != pair && 2 >= pair.length && null != pair[1] ) {
str += "\n\n" + getString( R.string.about_btaddr_fmt, pair[1] );
}
}
((TextView)view.findViewById( R.id.about_build ))
.setText( str );

View file

@ -1503,6 +1503,9 @@
\n\tSource (Git) rev: %4$s
\n\tBuilt: %5$s</string>
<string name="about_devid_fmt">Device ID: %1$s</string>
<!-- string to display device's bluetooth Mac address, if known -->
<string name="about_btaddr_fmt">BT Mac Addr: %1$s</string>
<!-- copyright info -->
<string name="about_copyright">CrossWords for Android \nCopyright
(C) 1998-2020 by Eric House. This free/open source software is