allow show timer stats and game traffic on release builds

This commit is contained in:
Eric House 2022-03-01 10:47:31 -08:00
parent e101050779
commit bc989dc903
2 changed files with 3 additions and 3 deletions

View file

@ -450,7 +450,8 @@ public abstract class DelegateBase implements DlgClickNotify,
ab.setMessage( msg )
.setPositiveButton( android.R.string.ok, null );
if ( BuildConfig.NON_RELEASE && null != conTypes ) {
boolean showDbg = BuildConfig.NON_RELEASE || getDebugEnabled( m_activity );
if ( showDbg && null != conTypes ) {
OnClickListener lstnr = null;
int buttonTxt = 0;
if ( conTypes.contains( CommsConnType.COMMS_CONN_MQTT ) ) {

View file

@ -1723,8 +1723,7 @@ public class GamesListDelegate extends ListDelegateBase
0 < DBUtils.getGamesWithSendsPending( m_activity ).size();
Utils.setItemVisible( menu, R.id.games_menu_resend, enable );
Utils.setItemVisible( menu, R.id.games_menu_timerStats,
BuildConfig.NON_RELEASE );
Utils.setItemVisible( menu, R.id.games_menu_timerStats, showDbg );
enable = Log.getStoreLogs();
Utils.setItemVisible( menu, R.id.games_menu_enableLogStorage, !enable );