only show game-gone msg src on non-release builds

This commit is contained in:
Eric House 2020-11-25 10:40:08 -08:00
parent f4e7ff1397
commit 9929de1fa7
2 changed files with 3 additions and 2 deletions

View file

@ -265,7 +265,7 @@ public class BoardDelegate extends DelegateBase
CommsAddrRec.ConnExpl expl = params.length == 0 ? null
: (CommsAddrRec.ConnExpl)params[0];
String message = getString( R.string.msg_dev_deleted_fmt, gameName );
if ( null != expl ) {
if ( BuildConfig.NON_RELEASE && null != expl ) {
message += "\n\n" + expl.getUserExpl( m_activity );
}
ab = ab.setTitle( R.string.query_title )

View file

@ -113,7 +113,8 @@ public class CommsAddrRec implements Serializable {
public String getUserExpl( Context context )
{
return String.format( "%s: %s", mType, mName );
Assert.assertTrueNR( BuildConfig.NON_RELEASE );
return String.format( "(Msg src: {%s: %s})", mType, mName );
}
}