Bug 935542 - PinSiteDialog fragment should be owned by TopSitesPanel. r=mfinkle, a=lsblakk
authorLucas Rocha <lucasr@mozilla.com>
Thu, 13 Feb 2014 11:48:56 +0000
changeset 176301 151a690db415f5db3d462d1f4e916a1478b4add2
parent 176300 b37b9d564062d2631a94c37f154fa72f2d633137
child 176302 0609dee24b0b4c053093a9f0d3d405d3ea05f241
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lsblakk
bugs935542
milestone28.0
Bug 935542 - PinSiteDialog fragment should be owned by TopSitesPanel. r=mfinkle, a=lsblakk
mobile/android/base/home/TopSitesPage.java
--- a/mobile/android/base/home/TopSitesPage.java
+++ b/mobile/android/base/home/TopSitesPage.java
@@ -396,17 +396,17 @@ public class TopSitesPage extends HomeFr
 
         // Position of the pin.
         private int mPosition;
 
         @Override
         public void onEditPinnedSite(int position, String searchTerm) {
             mPosition = position;
 
-            final FragmentManager manager = getActivity().getSupportFragmentManager();
+            final FragmentManager manager = getChildFragmentManager();
             PinSiteDialog dialog = (PinSiteDialog) manager.findFragmentByTag(TAG_PIN_SITE);
             if (dialog == null) {
                 dialog = PinSiteDialog.newInstance();
             }
 
             dialog.setOnSiteSelectedListener(this);
             dialog.setSearchTerm(searchTerm);
             dialog.show(manager, TAG_PIN_SITE);