Bug 882735 - Force recreation of children once favicons are loaded (r=bnicholson)
authorLucas Rocha <lucasr@mozilla.com>
Fri, 14 Jun 2013 10:01:25 +0100
changeset 143334 ca479c8f1cef8e132806aba97ca5755cb1748d5d
parent 143333 d5ab1e6fced4d633382936268e49d52572f7f525
child 143335 cdee85022d13443a41d8322abb0444e0c0b4af7c
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson
bugs882735
milestone24.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 882735 - Force recreation of children once favicons are loaded (r=bnicholson)
mobile/android/base/BrowserSearch.java
--- a/mobile/android/base/BrowserSearch.java
+++ b/mobile/android/base/BrowserSearch.java
@@ -638,17 +638,17 @@ public class BrowserSearch extends Fragm
                     args.putStringArrayList(FAVICONS_LOADER_URLS_ARG, urls);
                     getLoaderManager().restartLoader(FAVICONS_LOADER_ID, args, mCursorLoaderCallbacks);
                 }
                 break;
 
             case FAVICONS_LOADER_ID:
                 // Causes the listview to recreate its children and use the
                 // now in-memory favicons.
-                mList.requestLayout();
+                mAdapter.notifyDataSetChanged();
                 break;
             }
         }
 
         @Override
         public void onLoaderReset(Loader<Cursor> loader) {
             final int loaderId = loader.getId();
             switch(loaderId) {