Skip to content

Add missing Parcelable to InsideTheBackStack.NavTarget and IndexedBackStack.State#735

Open
LissF wants to merge 1 commit intobumble-tech:1.xfrom
LissF:fix-parcelable-crash
Open

Add missing Parcelable to InsideTheBackStack.NavTarget and IndexedBackStack.State#735
LissF wants to merge 1 commit intobumble-tech:1.xfrom
LissF:fix-parcelable-crash

Conversation

@LissF
Copy link

@LissF LissF commented Feb 17, 2026

Summary

The sample app crashes when Android saves instance state (e.g. pressing Home while on the "Inside the backstack" screen). InsideTheBackStack.NavTarget and IndexedBackStack.State were missing Parcelable implementation, causing Parcel.writeValue() to fail at runtime with IllegalArgumentException: unknown type for value.

  • Added Parcelable to InsideTheBackStack.NavTarget sealed class and @Parcelize to Child
  • Added Parcelable to IndexedBackStack.State sealed interface and @Parcelize to all implementations

Steps to reproduce

  1. Launch sample.app
  2. Tap "Inside the backstack"
  3. Press the Home button (triggers onSaveInstanceState)
  4. App crashes with: java.lang.IllegalArgumentException: Parcel: unknown type for value 0

Maestro test

The following Maestro script can be used to verify the fix — it navigates to the screen, presses Home, resumes the app, and asserts the screen is still visible (no crash):

appId: com.bumble.appyx.samples
---
- launchApp
- assertVisible:
    text: "Inside the backstack"
- tapOn: "Inside the backstack"
- assertVisible:
    text: "Pop"
- pressKey: Home
- waitForAnimationToEnd
- launchApp:
    appId: com.bumble.appyx.samples
    stopApp: false
- assertVisible:
    text: "Pop"

🤖 Generated with Claude Code

…kStack.State

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@LissF LissF force-pushed the fix-parcelable-crash branch from 9d74dcf to c68609a Compare February 17, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant