Bug 722050 - Fix about:home checker-boarding (r=mfinkle)
authorLucas Rocha <lucasr@mozilla.com>
Mon, 30 Jan 2012 17:14:05 +0000
changeset 86952 596709924d3301cccea08d689024c4515acbf482
parent 86951 f97d3584b39516896b47994e89ed63dd7f28cadd
child 86953 1ea2df08454f54eaeaabee498e98ab9f8c13ad9e
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs722050
milestone12.0a1
Bug 722050 - Fix about:home checker-boarding (r=mfinkle)
mobile/android/base/AboutHomeContent.java
mobile/android/base/resources/layout/abouthome_content.xml
--- a/mobile/android/base/AboutHomeContent.java
+++ b/mobile/android/base/AboutHomeContent.java
@@ -120,16 +120,19 @@ public class AboutHomeContent extends Sc
         public void callback(String uriSpec);
     }
 
     public AboutHomeContent(Context context) {
         super(context);
         mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
         mInflater.inflate(R.layout.abouthome_content, this);
 
+        setScrollContainer(true);
+        setBackgroundResource(R.drawable.abouthome_bg_repeat);
+
         mTopSitesGrid = (GridView)findViewById(R.id.top_sites_grid);
         mTopSitesGrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {
             public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
                 Cursor c = (Cursor) parent.getItemAtPosition(position);
 
                 String spec = c.getString(c.getColumnIndex(URLColumns.URL));
                 Log.i(LOGTAG, "clicked: " + spec);
 
--- a/mobile/android/base/resources/layout/abouthome_content.xml
+++ b/mobile/android/base/resources/layout/abouthome_content.xml
@@ -1,12 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android"
-       android:isScrollContainer="false"
-       android:background="@drawable/abouthome_bg_repeat">
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
 
     <LinearLayout android:layout_width="fill_parent"
                   android:orientation="vertical"
                   android:layout_height="fill_parent"
                   android:background="@drawable/abouthome_bg_repeat">
 
         <RelativeLayout android:id="@+id/top_sites"
                         android:layout_width="fill_parent"