treehouses / remote

⚡ control Raspberry Pi from Android Device through Bluetooth ⚡
https://play.google.com/store/apps/details?id=io.treehouses.remote
GNU Affero General Public License v3.0
64 stars 29 forks source link

crash when switching between fragments #801

Closed law-lin closed 4 years ago

law-lin commented 4 years ago

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)
ali18997 commented 4 years ago

Happening when switching between Home and Settings as well on my device, should be the same reason though