mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2024-12-29 10:13:00 +01:00
fix a crash at first startup after granting storage permission
This commit is contained in:
parent
3bce99b7e3
commit
ccb1a74422
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user