Skip to content

Commit

Permalink
[fix/#175] 스크랩 추가 로딩 시 itemDecoration오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BENDENG1 committed Sep 2, 2024
1 parent fdfa4bb commit 13a8f46
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ class ScrapActivity : BaseActivity<ActivityScrapBinding>(
when (state) {
is UiState.Success -> {
binding.tvScrapCount.text = state.data.totalScrapCount.toString()
scrapAdapter.submitList(state.data.reviews)
isLoading = false
scrapAdapter.submitList(state.data.reviews) {
binding.rvScrapRecord.invalidateItemDecorations()
isLoading = false
}

setScrapScreenVisibility(ScrapScreenState.SUCCESS)
}

Expand Down

0 comments on commit 13a8f46

Please sign in to comment.