Bug 1476710 - Use childFragmentmanager when dismissing TabHistoryFragment; r=jchen
authorPetru Lingurar <petru.lingurar@softvision.ro>
Tue, 24 Jul 2018 10:15:51 +0300
changeset 428423 78a98c31897acde7302d3250ddc74b1f75598ac4
parent 428422 fc9dc68f20ac6eda8facb9aecca3f174b6b25fc5
child 428424 b047230ee4df8a659992ea698d748320a1c279a8
push id34335
push usershindli@mozilla.com
push dateThu, 26 Jul 2018 11:19:11 +0000
treeherdermozilla-central@4e6486b672b3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1476710
milestone63.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 1476710 - Use childFragmentmanager when dismissing TabHistoryFragment; r=jchen MozReview-Commit-ID: 1DyoBj0wpRe
mobile/android/base/java/org/mozilla/gecko/tabs/TabHistoryFragment.java
--- a/mobile/android/base/java/org/mozilla/gecko/tabs/TabHistoryFragment.java
+++ b/mobile/android/base/java/org/mozilla/gecko/tabs/TabHistoryFragment.java
@@ -139,17 +139,17 @@ public class TabHistoryFragment extends 
     public void dismiss() {
         if (dismissed) {
             return;
         }
 
         dismissed = true;
 
         if (backStackId >= 0) {
-            getFragmentManager().popBackStackImmediate(backStackId, FragmentManager.POP_BACK_STACK_INCLUSIVE);
+            getChildFragmentManager().popBackStackImmediate(backStackId, FragmentManager.POP_BACK_STACK_INCLUSIVE);
             backStackId = -1;
         }
 
         if (parent != null) {
             parent.setVisibility(View.GONE);
         }
     }