mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
add constant controlling id logging
This commit is contained in:
parent
a8b2c09491
commit
0ea181687e
1 changed files with 8 additions and 3 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue