Skip to content

Commit

Permalink
Merge pull request #220 from falconArdente/save_fix
Browse files Browse the repository at this point in the history
Исправление избранного
  • Loading branch information
ZimikXXIV authored Aug 1, 2024
2 parents e8e3ba1 + 1d5159f commit b5271e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class VacancyDetailsViewModel(
private suspend fun processFavoriteState(vacancyToCheck: VacancyDetails?) {
detailsDbInteractor.isExistsVacancy(vacancyId.toInt()).collect {
_stateLiveData.value = VacancyDetailsState.Favorite(it)
if (vacancyToCheck != null) detailsDbInteractor.insertVacancyWithCheck(vacancyToCheck)
if (vacancyToCheck != null && it) detailsDbInteractor.insertVacancyWithCheck(vacancyToCheck)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class SearchJobFragment : Fragment() {
}

private fun renderLoading() {
binding.searchMiniProgressBar.isVisible = true
setVisible(
placeholderText = false,
list = false,
Expand Down

0 comments on commit b5271e3

Please sign in to comment.