Skip to content

Android: rotating the screen no longer closes Send, Swap and Stake - #1672

Closed
gemdev111 wants to merge 1 commit into
mainfrom
fix/android-flows-survive-recreation
Closed

gemdev111 wants to merge 1 commit into
mainfrom
fix/android-flows-survive-recreation

Conversation

@gemdev111

@gemdev111 gemdev111 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Rotating the phone or switching the theme during Send, Swap or Stake closed the flow and lost what was typed. Now the open screen stays. After the system kills the app, the flow still starts over, as before.

Part of #1470.

Before After rotation After theme switch
Before: rotating on Recipient closes Send After rotation: Recipient keeps address and memo After theme switch: Recipient keeps address and memo

@gemdev111
gemdev111 marked this pull request as draft October 27, 2026 11:04
Rotating the phone, changing the theme or resizing the window during Send, Swap or Stake closed the whole flow and dropped the user back on the asset, losing the recipient, memo and amount. The back stack serializer dropped in-flight and secret routes on every save, and Android saves and restores the back stack on every configuration change, not only when the system kills the app.

The serializer now keeps the whole stack when the activity is changing configurations and drops those routes otherwise, so a restore after the app was killed still opens the screen that started the flow, never Recipient, Amount or Confirm.
@gemdev111
gemdev111 force-pushed the fix/android-flows-survive-recreation branch from d1e87b6 to d837ee0 Compare October 27, 2026 11:30
@gemdev111 gemdev111 changed the title Android: Send, Swap and Stake stay open when the screen is recreated Android: rotating the screen no longer closes Send, Swap and Stake Oct 27, 2026
@gemdev111 gemdev111 self-assigned this Oct 27, 2026
@gemdev111
gemdev111 marked this pull request as ready for review October 27, 2026 11:34
@gemdev111

Copy link
Copy Markdown
Collaborator Author

Moved into #1673, which now closes #1470 in one PR.

@gemdev111 gemdev111 closed this Oct 27, 2026
@gemdev111
gemdev111 deleted the fix/android-flows-survive-recreation branch October 27, 2026 14:02
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