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

Android App crashes on orientation change #41

Open
intrigus opened this issue Nov 23, 2015 · 1 comment
Open

Android App crashes on orientation change #41

intrigus opened this issue Nov 23, 2015 · 1 comment
Assignees

Comments

@intrigus
Copy link

How to reproduce:
Go to basket screen, change orientation, go to main menu (=press back), click on a tshirt, app will crash.

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
     at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1336)
     at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1347)
     at android.app.BackStackRecord.commitInternal(BackStackRecord.java:595)
     at android.app.BackStackRecord.commit(BackStackRecord.java:574)
     at org.robovm.store.StoreAppActivity.switchScreens(StoreAppActivity.java:120)
     at org.robovm.store.StoreAppActivity.switchScreens(StoreAppActivity.java:101)
     at org.robovm.store.StoreAppActivity.showProductDetail(StoreAppActivity.java:178)
     at org.robovm.store.StoreAppActivity.access$lambda$0(StoreAppActivity.java)
     at org.robovm.store.StoreAppActivity$$Lambda$1.invoke(Unknown Source)
     at org.robovm.store.fragments.ProductListFragment.onListItemClick(ProductListFragment.java:79)
     at android.app.ListFragment$2.onItemClick(ListFragment.java:160)
     at android.widget.AdapterView.performItemClick(AdapterView.java:301)
     at android.widget.AbsListView.performItemClick(AbsListView.java:1508)
     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3293)
     at android.widget.AbsListView$1.run(AbsListView.java:4554)
     at android.os.Handler.handleCallback(Handler.java:725)
     at android.os.Handler.dispatchMessage(Handler.java:92)
     at android.os.Looper.loop(Looper.java:176)
     at android.app.ActivityThread.main(ActivityThread.java:5365)
     at java.lang.reflect.Method.invokeNative(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:511)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
     at dalvik.system.NativeStart.main(Native Method)

Android 4.2.2

@intrigus
Copy link
Author

I have added the stacktrace.

@ajhager ajhager self-assigned this Nov 24, 2015
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

2 participants