The following error was logged to Android Studio after switching between Services and Network.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.treehouses.remote, PID: 25422
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at androidx.fragment.app.m.C(FragmentManager.java:1691)
at androidx.fragment.app.m.a(FragmentManager.java:1731)
at androidx.fragment.app.a.b(BackStackRecord.java:321)
at androidx.fragment.app.a.a(BackStackRecord.java:286)
at io.treehouses.remote.a.a0.a(ServicesFragment.java:128)
at io.treehouses.remote.a.a0.a(ServicesFragment.java:30)
at io.treehouses.remote.a.a0$b.handleMessage(ServicesFragment.java:79)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
The following error was logged to Android Studio after switching between Services and Network.