Skip to content

Move capture to ViewModel - #722

Open
m4pl wants to merge 46 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/717-move-capture-viewmodel
Open

m4pl wants to merge 46 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/717-move-capture-viewmodel

Conversation

@m4pl

@m4pl m4pl commented Sep 25, 2026

Copy link
Copy Markdown

Closes #717

@m4pl
m4pl marked this pull request as ready for review September 25, 2026 17:45
}

private suspend fun <T> onStorage(block: () -> T): CaptureOutputResult<T> {
return withContext(ioDispatcher) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There can be other exceptions, e.g. SQLiteFullException. In such cases app will crash and queued photos will be lost

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.

2 participants