I've seen three reports from app in production on Android devices in the last two weeks with the following error:
java.lang.IllegalStateException: Fragment already added: ShellContentFragment
It seems this occurs when an attempt is made to add a fragment to a view more than once. The Android documentation (https://developer.android.com/guide/fragments/create) suggests only adding the fragment once, as when a configuration change occurs an existing fragment is restored from saved state. It therefore may be necessary to add a check before adding the ShellContentFragment.
Description
I've seen three reports from app in production on Android devices in the last two weeks with the following error:
java.lang.IllegalStateException: Fragment already added: ShellContentFragment
It seems this occurs when an attempt is made to add a fragment to a view more than once. The Android documentation (https://developer.android.com/guide/fragments/create) suggests only adding the fragment once, as when a configuration change occurs an existing fragment is restored from saved state. It therefore may be necessary to add a check before adding the
ShellContentFragment
.This is the stack trace:
Steps to Reproduce
Expected Behavior
App is stable.
Actual Behavior
App crashes intermittently. Although with very low overall impact.
Basic Information
Environment
Show/Hide Visual Studio info
``` ```Build Logs
Screenshots
Reproduction Link
Workaround