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 #20
Comments
Ok, fixed. Changed to |
Hello, Thanks for your work :) I see your commit but It seems that in the release v2.0.8, sources don't change. I have always I did a screenshot: Thanks ! |
I just download the zip of the v2.0.8. And I have always :
So, there is an error. Thanks a lot ! |
Yeap, my mistake. Try it with 2.0.9! |
Good news, the issue is fixed ;) Thanks :) |
how to resolve this? I am getting it too. Should I have to edit the PickImageDialog.java library file for myself?, do I need to update the library? |
@qadir227 You need to update the library version. |
Hello,
I use the library in a fragment. When I open the camera and I click back. I have this error:
E/AndroidRuntime: FATAL EXCEPTION: main Process: ileo.eurowatt.fiqsit, PID: 6170 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=196609, result=0, data=Intent { }} to activity {ileo.eurowatt.fiqsit/ileo.eurowatt.fiqsit.ui.activity.NCSaveActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.ActivityThread.deliverResults(ActivityThread.java:3574) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3617) at android.app.ActivityThread.access$1300(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1352) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1842) at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1860) at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:649) at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:609) at android.support.v4.app.DialogFragment.dismissInternal(DialogFragment.java:205) at android.support.v4.app.DialogFragment.dismiss(DialogFragment.java:171) at com.vansuita.pickimage.PickImageDialog.onActivityResult(PickImageDialog.java:214) at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:164) at android.app.Activity.dispatchActivityResult(Activity.java:6192) at android.app.ActivityThread.deliverResults(ActivityThread.java:3570) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3617) at android.app.ActivityThread.access$1300(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1352) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
I think that you need to change
dismiss();
withdismissAllowingStateLoss();
in the onActivityResult of PickerDialog.Thanks for your work.
The text was updated successfully, but these errors were encountered: