fix a crash at first startup after granting storage permission

This commit is contained in:
tibbi 2016-07-26 23:13:37 +02:00
parent 3bce99b7e3
commit ccb1a74422

View File

@ -61,7 +61,8 @@ public class MainActivity extends SimpleActivity implements ItemsFragment.ItemIn
final ItemsFragment fragment = new ItemsFragment(); final ItemsFragment fragment = new ItemsFragment();
fragment.setArguments(bundle); fragment.setArguments(bundle);
fragment.setListener(this); 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 @Override