docs(android): the APK poller now calls wallet_child_refresh
All checks were successful
android-ci / android (pull_request) Successful in 10m19s

#135 merged against fa0e4b2-era docs that said the loop was still
wallet_status. #134 already landed: first paint is cached, every later
tick is Wire::wallet_child_refresh.
This commit is contained in:
agent 2026-09-20 00:56:08 -04:00
commit 0a8105584f
No known key found for this signature in database
2 changed files with 29 additions and 21 deletions

View file

@ -159,12 +159,12 @@ above is the other half of the proof — request and artifact, separately checka
`contentDescription` carries (`walletChildStatusDescription`), so the spoken row
is never shorter than the visible one. Cross-compiled and unit-tested on the
JVM; still not device-proven.
* **What writes that snapshot on Android.** The wallet screen's 2 s loop
(`WireViewModel.refreshWalletChild`) calls `Wire.walletStatus()` — the cached
UniFFI read, no dial. The live probe `Wire.walletChildRefresh()`
(`Wire::wallet_child_refresh` in `crates/onionwire-sdk`) exists and is what
makes height/target move between calls; the TUI uses it. The APK poller on
this tree does not. See [README.md](README.md#what-the-apk-refresh-loop-actually-calls).
* **What writes that snapshot on Android.** The wallet screen's loop
(`WireViewModel.openWalletChild` → `walletChildRefreshLoop`) does one cached
`Wire.walletStatus()` paint, then every 2 s a live
`Wire.walletChildRefresh()` (`Wire::wallet_child_refresh`). The live call is
what makes height/target move between ticks; it never spawns. See
[README.md](README.md#what-the-apk-refresh-loop-actually-calls).
* **Storage honesty.** The card shows the free space on the filesystem the fjall
store grows into (`StatFs` on the app's data dir) and refuses Start below a
floor, or when that filesystem cannot be read at all. The floor is a *floor*,
@ -256,6 +256,5 @@ then unlock the node, open Wallet, tap **On-device node (Cuprate)**, read the
warning, press **Start wallet**, and watch the status line for
`connecting → syncing · in-process node · node starting → node syncing`. A wallet
balance needs the chain synced, which on a phone is a long wait — the status line
is the thing to watch, not the balance. On this tree the APK loop will not itself
refresh height from the daemon; a live probe is a separate SDK call the TUI
makes and the Android poller does not.
is the thing to watch, not the balance. After the first cached paint, the APK
loop probes live every 2 s, so `sync h/t` should move once the daemon answers.