Skip to content
Snippets Groups Projects
Commit 773128bb authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Update current fragment ref only when necessary

parent dc9a39ed
No related branches found
No related tags found
No related merge requests found
......@@ -652,9 +652,10 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
fm.beginTransaction().remove(mCurrentFragment).commit();
else {
if (mCurrentFragment instanceof BaseBrowserFragment
&& !((BaseBrowserFragment) mCurrentFragment).isRootDirectory())
&& !((BaseBrowserFragment) mCurrentFragment).isRootDirectory()) {
getSupportFragmentManager().popBackStackImmediate(getTag(id), FragmentManager.POP_BACK_STACK_INCLUSIVE);
mCurrentFragment = getCurrentFragment();
mCurrentFragment = getCurrentFragment();
}
fm.beginTransaction().hide(mCurrentFragment).commit();
}
FragmentTransaction ft = fm.beginTransaction();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment