Skip to content

Fix moto gray screen due to double pop back - #1181

Merged
davecraig merged 2 commits into
Scottish-Tech-Army:mainfrom
davecraig:main
Oct 23, 2026
Merged

davecraig merged 2 commits into
Scottish-Tech-Army:mainfrom
davecraig:main

Conversation

@davecraig

Copy link
Copy Markdown
Contributor

No description provided.

davecraig and others added 2 commits October 23, 2026 22:20
- Every minute each phone's vitals now record the app's RssAnon and VmSwap
  (from /proc/<pid>/status), its process state, PSS and uptime, and the
  phone's RAM. At the end of each cycle the app is sent to the background for
  a reading with only its service running. The report's new "Anon + swap"
  column shows the current figure as a share of RAM and the 24-hour peak on
  screen and service only against Google Play's February 2027 limits for the
  phone's RAM tier (in red when over).

- Before the first Restore after the monkey soak dark mode is switched over
  and back, as it brings back the Moto's blank grey window (whose Compose
  content stops drawing) and that can come back within a minute of the
  retry's switch.
- Restore stops any beacon first: its card makes Home taller than the
  Cubot's screen, leaving buttons under the search bar where taps miss.
- A farm shutdown while a phone is paused no longer goes on to set the
  phone up again, which wiped its app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex6Fdp5ftuhE1ZEyhZb7WQ
…reach home

A quick double tap on an on-screen back arrow landed the second tap on the
exiting screen and popped the start destination too, leaving the NavHost with
nothing to draw: a blank grey window. Relaunching didn't recover it because
Navigator.destination started as HOME and was only reset after a navigate, so
every later request for home was dropped as a repeat.

Back buttons now use navigateBack(), which ignores a pop while the previous
one is still animating and never pops the last entry. A request for home pops
back to it, or rebuilds it if the back stack has lost it, and the request is
always cleared afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex6Fdp5ftuhE1ZEyhZb7WQ
@davecraig
davecraig merged commit 3761e97 into Scottish-Tech-Army:main Oct 23, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
development — 06c44290 Deployed Oct 23, 2026 by davecraig via lint #1632
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