add constant controlling id logging

This commit is contained in:
Eric House 2016-07-21 07:05:35 -07:00
parent a8b2c09491
commit 0ea181687e

View file

@ -51,6 +51,7 @@ import junit.framework.Assert;
public class MainActivity extends XWActivity
implements FragmentManager.OnBackStackChangedListener {
private static final int MAX_PANES_LANDSCAPE = 2;
private static final boolean LOG_IDS = false;
private DelegateBase m_dlgt;
private boolean m_dpEnabled;
@ -278,8 +279,10 @@ public class MainActivity extends XWActivity
} else {
if ( fragCount == m_root.getChildCount() - 1 ) {
View child = m_root.getChildAt( fragCount );
// DbgUtils.logf( "onBackStackChanged(): removing view with id %x",
// child.getId() );
if ( LOG_IDS ) {
DbgUtils.logf( "onBackStackChanged(): removing view with id %x",
child.getId() );
}
m_root.removeView( child );
setVisiblePanes();
}
@ -397,7 +400,9 @@ public class MainActivity extends XWActivity
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
int id = --m_nextID;
cont.setId( id );
// DbgUtils.logf( "assigning id %x to view with name %s", id, newName );
if ( LOG_IDS ) {
DbgUtils.logf( "assigning id %x to view with name %s", id, newName );
}
m_root.addView( cont, replace ? containerCount - 1 : containerCount );
if ( !replace && containerCount >= m_maxPanes ) {