summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/view
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-10-10 15:33:48 -0700
committerJohn Reck <jreck@google.com>2012-04-18 14:29:03 -0700
commitf94abcf44fc1611f76e55461f48220e621fc31b7 (patch)
tree678fab453c53611388e27cde68371192e194082f /src/com/android/browser/view
parentf1286a455eeacd02dfcca1335e6a7a9f87433c1b (diff)
downloadpackages_apps_Browser-f94abcf44fc1611f76e55461f48220e621fc31b7.zip
packages_apps_Browser-f94abcf44fc1611f76e55461f48220e621fc31b7.tar.gz
packages_apps_Browser-f94abcf44fc1611f76e55461f48220e621fc31b7.tar.bz2
Load bookmarks asynchronously
Bug: 5297900 Change-Id: I8b728cfe06799099e21c402d5da7087507209ffa
Diffstat (limited to 'src/com/android/browser/view')
-rw-r--r--src/com/android/browser/view/BookmarkContainer.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/com/android/browser/view/BookmarkContainer.java b/src/com/android/browser/view/BookmarkContainer.java
index 260b05e..5175589 100644
--- a/src/com/android/browser/view/BookmarkContainer.java
+++ b/src/com/android/browser/view/BookmarkContainer.java
@@ -29,7 +29,8 @@ import android.widget.RelativeLayout;
public class BookmarkContainer extends RelativeLayout implements OnClickListener {
private OnClickListener mClickListener;
-
+ private boolean mIgnoreRequestLayout = false;
+
public BookmarkContainer(Context context) {
super(context);
init();
@@ -89,4 +90,15 @@ public class BookmarkContainer extends RelativeLayout implements OnClickListener
mClickListener.onClick(view);
}
}
+
+ public void setIgnoreRequestLayout(boolean ignore) {
+ mIgnoreRequestLayout = ignore;
+ }
+
+ @Override
+ public void requestLayout() {
+ if (!mIgnoreRequestLayout) {
+ super.requestLayout();
+ }
+ }
}