Skip to content

Commit

Permalink
Add loading state when dispatch event for update files (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorNarvaez committed Jul 7, 2023
1 parent dcee4e6 commit 85bb272
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class FileViewerViewModel @Inject constructor(
}

private fun updateFileEvent(event: FileViewerViewEvent.UpdateFile) {
setState(FileViewerViewState.Loading)
val fileId = lastFileClicked?.id

if (fileId.isNullOrBlank()) {
Expand Down

0 comments on commit 85bb272

Please sign in to comment.