mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
remove views before adding new one. This shouldn't be possible, but
google's received reports of it happening.
This commit is contained in:
parent
c3f4e5323c
commit
683302f40e
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ public class Toolbar {
|
|||
|
||||
int id = isLandscape ? R.id.tbar_parent_vert : R.id.tbar_parent_hor;
|
||||
ViewGroup scroller = (ViewGroup)m_activity.findViewById( id );
|
||||
scroller.addView( m_layout );
|
||||
// Google's had reports of a crash adding second view
|
||||
scroller.removeAllViews();
|
||||
scroller.addView( m_layout ); // failing
|
||||
}
|
||||
|
||||
m_layout.setVisibility( m_visible? View.VISIBLE : View.GONE );
|
||||
|
|
Loading…
Reference in a new issue