mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +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
|
public class MainActivity extends XWActivity
|
||||||
implements FragmentManager.OnBackStackChangedListener {
|
implements FragmentManager.OnBackStackChangedListener {
|
||||||
private static final int MAX_PANES_LANDSCAPE = 2;
|
private static final int MAX_PANES_LANDSCAPE = 2;
|
||||||
|
private static final boolean LOG_IDS = false;
|
||||||
|
|
||||||
private DelegateBase m_dlgt;
|
private DelegateBase m_dlgt;
|
||||||
private boolean m_dpEnabled;
|
private boolean m_dpEnabled;
|
||||||
|
@ -278,8 +279,10 @@ public class MainActivity extends XWActivity
|
||||||
} else {
|
} else {
|
||||||
if ( fragCount == m_root.getChildCount() - 1 ) {
|
if ( fragCount == m_root.getChildCount() - 1 ) {
|
||||||
View child = m_root.getChildAt( fragCount );
|
View child = m_root.getChildAt( fragCount );
|
||||||
// DbgUtils.logf( "onBackStackChanged(): removing view with id %x",
|
if ( LOG_IDS ) {
|
||||||
// child.getId() );
|
DbgUtils.logf( "onBackStackChanged(): removing view with id %x",
|
||||||
|
child.getId() );
|
||||||
|
}
|
||||||
m_root.removeView( child );
|
m_root.removeView( child );
|
||||||
setVisiblePanes();
|
setVisiblePanes();
|
||||||
}
|
}
|
||||||
|
@ -397,7 +400,9 @@ public class MainActivity extends XWActivity
|
||||||
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
|
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
|
||||||
int id = --m_nextID;
|
int id = --m_nextID;
|
||||||
cont.setId( id );
|
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 );
|
m_root.addView( cont, replace ? containerCount - 1 : containerCount );
|
||||||
|
|
||||||
if ( !replace && containerCount >= m_maxPanes ) {
|
if ( !replace && containerCount >= m_maxPanes ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue