Skip to content

Conversation

@bifri
Copy link

@bifri bifri commented Nov 10, 2025

Issue

#417

Description

This fix ensures that the captured photo result is correctly preserved across process death - when the camera screen was in the background, the app was killed due to low memory, the process was recreated, and the camera reinitialized.

The updated implementation uses rememberSaveable to retain the captured photo path across process restarts and reattaches it to the camera result when the composable is recreated. This guarantees that users don’t lose their photo capture results after process death when the camera component is reinitialized.

In short, this change improves reliability and makes camera usage with FileKit more resilient in real-world scenarios (e.g. when backgrounding or switching apps during capture).

@bifri bifri changed the title Preserve captured photo result after process death and camera reinitialization [Android] Preserve captured photo result after process death and camera reinitialization Nov 10, 2025
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