Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Nov 10, 2025

The loadFeedback, closeFeedback, and addReply functions in FeedbackDetailViewModel were performing database operations on the main thread, which could lead to UI unresponsiveness (ANR).

This change wraps the repository calls within viewModelScope.launch(Dispatchers.IO) to ensure they are executed on a background thread.


https://jules.google.com/session/18272544140509442339

The `loadFeedback`, `closeFeedback`, and `addReply` functions in `FeedbackDetailViewModel` were performing database operations on the main thread, which could lead to UI unresponsiveness (ANR).

This change wraps the repository calls within `viewModelScope.launch(Dispatchers.IO)` to ensure they are executed on a background thread.
The `loadFeedback`, `closeFeedback`, and `addReply` functions in `FeedbackDetailViewModel` were performing database operations on the main thread, which could lead to UI unresponsiveness (ANR).

This change wraps the repository calls within `viewModelScope.launch(Dispatchers.IO)` to ensure they are executed on a background thread. It also adds the necessary import for `Dispatchers`.
@dogi dogi closed this Nov 10, 2025
@dogi dogi reopened this Nov 10, 2025
@dogi dogi removed the close? label Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants