Bug 969316 - Use description column instead of url in PanelListRow (r=margaret)
authorLucas Rocha <lucasr@mozilla.com>
Fri, 07 Feb 2014 17:06:47 +0000
changeset 184783 f9541be5a0f98ce2ac63aa003d79c00eeb208cdb
parent 184782 cff6ebdce225cb2040fd0ef3d05728e2c6acca36
child 184784 6a48babd4b2077da65417138187ccfc610462f93
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs969316
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 969316 - Use description column instead of url in PanelListRow (r=margaret)
mobile/android/base/home/PanelListRow.java
--- a/mobile/android/base/home/PanelListRow.java
+++ b/mobile/android/base/home/PanelListRow.java
@@ -38,19 +38,19 @@ public class PanelListRow extends TwoLin
 
         // XXX: This will have to be updated once we come up with the
         // final schema for Panel datasets (see bug 942288).
 
         int titleIndex = cursor.getColumnIndexOrThrow(HomeItems.TITLE);
         final String title = cursor.getString(titleIndex);
         setTitle(title);
 
-        int urlIndex = cursor.getColumnIndexOrThrow(HomeItems.URL);
-        final String url = cursor.getString(urlIndex);
-        setDescription(url);
+        int descriptionIndex = cursor.getColumnIndexOrThrow(HomeItems.DESCRIPTION);
+        final String description = cursor.getString(descriptionIndex);
+        setDescription(description);
 
         int imageIndex = cursor.getColumnIndexOrThrow(HomeItems.IMAGE_URL);
         final String imageUrl = cursor.getString(imageIndex);
 
         Picasso.with(getContext())
                .load(imageUrl)
                .error(R.drawable.favicon)
                .into(mIcon);