You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Move DB operations to IO dispatcher in FeedbackDetailViewModel
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`.
0 commit comments