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

Can not perform this action after onSaveInstanceState #42

Open
liuzhanta opened this issue Aug 23, 2016 · 0 comments
Open

Can not perform this action after onSaveInstanceState #42

liuzhanta opened this issue Aug 23, 2016 · 0 comments

Comments

@liuzhanta
Copy link

when I execute this code like following this:
final SublimePickerFragment pickerFrag = new SublimePickerFragment(); .......... pickerFrag.show(((FragmentActivity)context).getSupportFragmentManager(),"SUBLIME_PICKER");
It shows error :" Can not perform this action after onSaveInstanceState"

And I have had found solution :
replace PickerFragment.show() with code like this :
FragmentTransaction transaction = ((FragmentActivity)context).getSupportFragmentManager().beginTransaction(); transaction.add(pickerFrag, "SUBLIME_PICKER"); transaction.commitAllowingStateLoss();

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