bug 712300 - Checkerboard over about:home footer area r=mfinkle a=akeybl
authorBrad Lassey <blassey@mozilla.com>
Wed, 21 Dec 2011 00:17:19 -0500
changeset 84865 a215bdf79c9ae8a01364744948174b0365cfc337
parent 84864 58b188a5513d7529d554df386f404db6494a93c4
child 84866 997eae181a58d0c6c9cc3d658ec5e340b2e8b500
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, akeybl
bugs712300
milestone11.0a2
bug 712300 - Checkerboard over about:home footer area r=mfinkle a=akeybl
mobile/android/base/AboutHomeContent.java
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/AboutHomeContent.java
+++ b/mobile/android/base/AboutHomeContent.java
@@ -92,16 +92,18 @@ public class AboutHomeContent extends Sc
     protected ListView mAddonsList;
 
     public interface UriLoadCallback {
         public void callback(String uriSpec);
     }
 
     public AboutHomeContent(Context context, AttributeSet attrs) {
         super(context, attrs);
+        setScrollContainer(true);
+        setBackgroundResource(R.drawable.abouthome_bg_repeat);
     }
 
     @Override
     protected void onFinishInflate() {
         super.onFinishInflate();
         synchronized (this) {
             if (mTopSitesGrid != null && mAddonsList != null)
                 return;
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -1021,17 +1021,20 @@ abstract public class GeckoApp
                 mAboutHomeContent = new AboutHomeContent(GeckoApp.mAppContext, null);
                 mAboutHomeContent.init(GeckoApp.mAppContext);
                 mAboutHomeContent.setUriLoadCallback(new AboutHomeContent.UriLoadCallback() {
                     public void callback(String url) {
                         mBrowserToolbar.setProgressVisibility(true);
                         loadUrl(url, AwesomeBar.Type.EDIT);
                     }
                 });
-                mGeckoLayout.addView(mAboutHomeContent);
+                RelativeLayout.LayoutParams lp = 
+                    new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 
+                                                    LayoutParams.FILL_PARENT);
+                mGeckoLayout.addView(mAboutHomeContent, lp);
             }
             if (mAboutHomeContent != null)
                 mAboutHomeContent.setVisibility(mShow ? View.VISIBLE : View.GONE);
         }
     }
 
     void updateAgentModeMenuItem(final Tab tab, final Tab.AgentMode agentMode) {
         if (sMenu == null)