mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +01:00
display BT Mac addr in About dialog (debug only)
It's useful so why not.
This commit is contained in:
parent
ac25baedd1
commit
35db73e4e4
2 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,12 @@ public class AboutAlert extends XWDialogFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
str = getString( R.string.about_devid_fmt, XwJNI.dvc_getMQTTDevID(null) );
|
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 ))
|
((TextView)view.findViewById( R.id.about_build ))
|
||||||
.setText( str );
|
.setText( str );
|
||||||
|
|
||||||
|
|
|
@ -1503,6 +1503,9 @@
|
||||||
\n\tSource (Git) rev: %4$s
|
\n\tSource (Git) rev: %4$s
|
||||||
\n\tBuilt: %5$s</string>
|
\n\tBuilt: %5$s</string>
|
||||||
<string name="about_devid_fmt">Device ID: %1$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 -->
|
<!-- copyright info -->
|
||||||
<string name="about_copyright">CrossWords for Android \nCopyright
|
<string name="about_copyright">CrossWords for Android \nCopyright
|
||||||
(C) 1998-2020 by Eric House. This free/open source software is
|
(C) 1998-2020 by Eric House. This free/open source software is
|
||||||
|
|
Loading…
Add table
Reference in a new issue