Files
sing-box-for-android/app
世界 258af731f6 Fix NPE in update download dialog when progress is null
The download progress indicator passed a deferred lambda
`progress = { progress!! }` reading UpdateState.downloadProgress
(MutableState<Float?>). Material3 invokes the lambda during
layout/draw, outside the composition snapshot that guarded it, so it
re-read the live state. ApkDownloader sets the value to null when the
response has no content length (total <= 0), and it can also flip while
the screen is being torn down, causing the `!!` to throw NPE.

Capture the value into an immutable local before branching so the
lambda closes over a non-null Float instead of re-reading live state.
2026-07-06 21:16:02 +08:00
..
2026-07-06 21:15:31 +08:00
2023-06-27 11:51:36 +08:00
2026-07-06 21:15:25 +08:00
2026-05-19 18:31:20 +08:00
2023-06-27 11:51:36 +08:00
2023-06-27 11:51:36 +08:00