diff --git a/app/src/main/java/com/simplemobiletools/filemanager/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/filemanager/activities/MainActivity.java index 7b51f259..d2717805 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/filemanager/activities/MainActivity.java @@ -61,7 +61,8 @@ public class MainActivity extends SimpleActivity implements ItemsFragment.ItemIn final ItemsFragment fragment = new ItemsFragment(); fragment.setArguments(bundle); fragment.setListener(this); - getSupportFragmentManager().beginTransaction().replace(R.id.fragment_holder, fragment).addToBackStack(path).commit(); + getSupportFragmentManager().beginTransaction().replace(R.id.fragment_holder, fragment).addToBackStack(path) + .commitAllowingStateLoss(); } @Override