Bug(Can not perform this action after onSaveInstanceState)

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1265)
at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:451)
at android.app.Activity.onBackPressed(Activity.java:2156)
at android.app.Activity.onKeyUp(Activity.java:2134)
at android.view.KeyEvent.dispatch(KeyEvent.java:2584)
at android.app.Activity.dispatchKeyEvent(Activity.java:2364)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1806)
at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3327)
at android.view.ViewRootImpl.handleFinishedEvent(ViewRootImpl.java:3300)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2460)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4476)
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:808)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:575)
at dalvik.system.NativeStart.main(Native Method)

 ========================================================================

发生在4.0.3系统上

猜你喜欢

转载自lrc-1986.iteye.com/blog/1810954