mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
allow show timer stats and game traffic on release builds
This commit is contained in:
parent
e101050779
commit
bc989dc903
2 changed files with 3 additions and 3 deletions
|
@ -450,7 +450,8 @@ public abstract class DelegateBase implements DlgClickNotify,
|
||||||
ab.setMessage( msg )
|
ab.setMessage( msg )
|
||||||
.setPositiveButton( android.R.string.ok, null );
|
.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;
|
OnClickListener lstnr = null;
|
||||||
int buttonTxt = 0;
|
int buttonTxt = 0;
|
||||||
if ( conTypes.contains( CommsConnType.COMMS_CONN_MQTT ) ) {
|
if ( conTypes.contains( CommsConnType.COMMS_CONN_MQTT ) ) {
|
||||||
|
|
|
@ -1723,8 +1723,7 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
0 < DBUtils.getGamesWithSendsPending( m_activity ).size();
|
0 < DBUtils.getGamesWithSendsPending( m_activity ).size();
|
||||||
Utils.setItemVisible( menu, R.id.games_menu_resend, enable );
|
Utils.setItemVisible( menu, R.id.games_menu_resend, enable );
|
||||||
|
|
||||||
Utils.setItemVisible( menu, R.id.games_menu_timerStats,
|
Utils.setItemVisible( menu, R.id.games_menu_timerStats, showDbg );
|
||||||
BuildConfig.NON_RELEASE );
|
|
||||||
|
|
||||||
enable = Log.getStoreLogs();
|
enable = Log.getStoreLogs();
|
||||||
Utils.setItemVisible( menu, R.id.games_menu_enableLogStorage, !enable );
|
Utils.setItemVisible( menu, R.id.games_menu_enableLogStorage, !enable );
|
||||||
|
|
Loading…
Reference in a new issue