Change TitleBar RelativeLayout to LinearLayout
Moving from RelativeLayout to LinearLayout improves
the UI layout time by 50%
This change also contains lazy initialization of
some of the Drawables in BaseUi.
Change-Id: Ie6d3f845098a79bc47e21a0d21f2a8d3ab97237a
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java
index 08d742e..83d7439 100644
--- a/src/com/android/browser/XLargeUi.java
+++ b/src/com/android/browser/XLargeUi.java
@@ -265,7 +265,7 @@
Drawable[] array = new Drawable[2];
array[0] = getFaviconBackground();
if (icon == null) {
- array[1] = mGenericFavicon;
+ array[1] = getGenericFavicon();
} else {
array[1] = new BitmapDrawable(mActivity.getResources(), icon);
}