Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

回退的时候我发现不执行transaction的remove方法,在isSticky为false有替换的时候出现不能remove掉fragment界面的情况 #6

Open
Yuphee opened this issue Dec 27, 2017 · 0 comments

Comments

@Yuphee
Copy link

Yuphee commented Dec 27, 2017

mFManager.popBackStack();
EasyFragment inFragment = mFragmentStack.get(mFragmentStack.size() - 2);
FragmentTransaction fragmentTransaction = mFManager.beginTransaction();
fragmentTransaction.show(inFragment);
EasyFragment outFragment = mFragmentStack.get(mFragmentStack.size() - 1);
inFragment.onResume();
FragmentStackEntity stackEntity = mFragmentEntityMap.get(outFragment);
mFragmentStack.remove(outFragment);
mFragmentEntityMap.remove(outFragment);
//remove
fragmentTransaction.remove(outFragment);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant