diff options
author | John Reck <jreck@google.com> | 2010-12-03 18:11:50 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-12-03 18:11:50 -0800 |
commit | f2057c2691a4339726d09d692f2e57af9ae873ba (patch) | |
tree | 59ac39889bbd15e373b5478b4018106e826ed38d | |
parent | 89f73c1146f474641881e3e20c77cfbfc18fa313 (diff) | |
download | packages_apps_Browser-f2057c2691a4339726d09d692f2e57af9ae873ba.zip packages_apps_Browser-f2057c2691a4339726d09d692f2e57af9ae873ba.tar.gz packages_apps_Browser-f2057c2691a4339726d09d692f2e57af9ae873ba.tar.bz2 |
Fix a layout hierarchy bug
Bug: 3254316
Fixes a problem where the BrowserBookmarkPage was adding new children
but never removing them, creating a more and more complex view
hierarchy.
Change-Id: I23ba3030b1f995eb6dde482868eaafe020624f2a
-rw-r--r-- | src/com/android/browser/BrowserBookmarksPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 13a0101..1410ce8 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -405,7 +405,8 @@ public class BrowserBookmarksPage extends Fragment implements View.OnCreateConte hc = (ViewGroup) root.findViewById(R.id.header_container); hc.setVisibility(View.VISIBLE); } - mHeader = inflater.inflate(R.layout.bookmarks_header, hc, true); + mHeader = inflater.inflate(R.layout.bookmarks_header, hc, false); + hc.addView(mHeader); mCrumbs = (BreadCrumbView) mHeader.findViewById(R.id.crumbs); mCrumbs.setController(this); mCrumbs.setUseBackButton(mCrumbBackButton); |