docs(android): describe the live wallet-child poller (#134)
main merged the APK loop that paints with wallet_status then probes with wallet_child_refresh. Rebase onto that and write the loop as it ships.
This commit is contained in:
parent
e2c77da6bc
commit
da70f9b32d
2 changed files with 29 additions and 21 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue