mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
test for null (though should not be required to fix this)
This commit is contained in:
parent
f093aba1a6
commit
f01d12035b
1 changed files with 5 additions and 3 deletions
|
@ -160,9 +160,11 @@ public class Toolbar {
|
||||||
|
|
||||||
int id = isLandscape ? R.id.tbar_parent_vert : R.id.tbar_parent_hor;
|
int id = isLandscape ? R.id.tbar_parent_vert : R.id.tbar_parent_hor;
|
||||||
ViewGroup scroller = (ViewGroup)m_activity.findViewById( id );
|
ViewGroup scroller = (ViewGroup)m_activity.findViewById( id );
|
||||||
// Google's had reports of a crash adding second view
|
if ( null != scroller ) {
|
||||||
scroller.removeAllViews();
|
// Google's had reports of a crash adding second view
|
||||||
scroller.addView( m_layout ); // failing
|
scroller.removeAllViews();
|
||||||
|
scroller.addView( m_layout ); // failing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_layout.setVisibility( m_visible? View.VISIBLE : View.GONE );
|
m_layout.setVisibility( m_visible? View.VISIBLE : View.GONE );
|
||||||
|
|
Loading…
Add table
Reference in a new issue