Bug 799877 - Call notifyDataSetChanged() after setting search engines. r=mfinkle
authorBrian Nicholson <bnicholson@mozilla.com>
Tue, 30 Oct 2012 11:02:09 -0700
changeset 111887 a5ab93cf9feaaecd2d983536d3c29830ea00c48a
parent 111886 c6cccc9e83fabb2bd6a9a2d85b6f2d4af199bbf4
child 111918 bed18790882febf4419e5ae3e968e8e137a69452
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersmfinkle
bugs799877
milestone19.0a1
Bug 799877 - Call notifyDataSetChanged() after setting search engines. r=mfinkle
mobile/android/base/awesomebar/AllPagesTab.java
--- a/mobile/android/base/awesomebar/AllPagesTab.java
+++ b/mobile/android/base/awesomebar/AllPagesTab.java
@@ -537,16 +537,17 @@ public class AllPagesTab extends Awesome
             // show suggestions opt-in if user hasn't been prompted
             if (!suggestionsPrompted && mSuggestClient != null) {
                 showSuggestionsOptIn();
             }
         } catch (JSONException e) {
             Log.e(LOGTAG, "Error getting search engine JSON", e);
         }
 
+        mCursorAdapter.notifyDataSetChanged();
         filterSuggestions(mSearchTerm);
     }
 
     private Drawable getDrawableFromDataURI(String dataURI) {
         String base64 = dataURI.substring(dataURI.indexOf(',') + 1);
         Drawable drawable = null;
         try {
             byte[] bytes = GeckoAppShell.decodeBase64(base64, GeckoAppShell.BASE64_DEFAULT);