You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If so, ID_REMOVE_SUPPORt_FRAGMENT_MANAGER is used to remove the Fragment from pendingSupportRequestManagerFragments only, it doesn't not remove the Fragment from the FragmentManager:
This logic is necessary because we cannot use commitNow() or executePendingTransactions() because doing so causes recursive Fragment changes in some circumstances. Adding the Fragment to a temporary set allows us to avoid adding multiple Fragments if multiple loads are started during the brief period between when we first commit the FragmentTransaction and when the transaction actually runs.
SupportRequestManagerFragment getSupportRequestManagerFragment(
final FragmentManager fm, Fragment parentHint) {
SupportRequestManagerFragment current =
(SupportRequestManagerFragment) fm.findFragmentByTag(FRAGMENT_TAG);
if (current == null) {
current = pendingSupportRequestManagerFragments.get(fm);
if (current == null) {
current = new SupportRequestManagerFragment();
current.setParentFragmentHint(parentHint);
pendingSupportRequestManagerFragments.put(fm, current);
fm.beginTransaction().add(current, FRAGMENT_TAG).commitAllowingStateLoss();
handler.obtainMessage(ID_REMOVE_SUPPORT_FRAGMENT_MANAGER, fm).sendToTarget();
}
}
return current;
}
first,you add current,then you move it?
The text was updated successfully, but these errors were encountered: