You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Activity lifecycle state breadcrumbs have a previous attribute that surfaces the previous state.
Unfortunately, as can be seen here, that previous state is not computed correctly and can be misleading. E.g. here we see an activity is receiving onStop() and yet the breadcrumb claims the previous state is onDestroy() which is impossible (onDestroy() is a final state).
This is happening because ActivityBreadcrumbCollector keeps a single field prevState which just stores whatever the last state update was for any activity, not necessarily for the activity that just got a new state.
Activity lifecycle state breadcrumbs have a
previous
attribute that surfaces the previous state.Unfortunately, as can be seen here, that previous state is not computed correctly and can be misleading. E.g. here we see an activity is receiving
onStop()
and yet the breadcrumb claims the previous state isonDestroy()
which is impossible (onDestroy()
is a final state).This is happening because ActivityBreadcrumbCollector keeps a single field
prevState
which just stores whatever the last state update was for any activity, not necessarily for the activity that just got a new state./~https://github.com/bugsnag/bugsnag-android/blob/556daed227c2aecf9869a694e0803fb63afc50da/bugsnag-android-core/src/main/java/com/bugsnag/android/ActivityBreadcrumbCollector.kt#LL11C9-L11C18
Apps often have multiple activities having lifecycle events interleaved.
The text was updated successfully, but these errors were encountered: