From 13a8f46809216a7d40999727497cdefd71807b39 Mon Sep 17 00:00:00 2001 From: BENDENG1 <76191161+BENDENG1@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:41:09 +0900 Subject: [PATCH] =?UTF-8?q?[fix/#175]=20=EC=8A=A4=ED=81=AC=EB=9E=A9=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=A1=9C=EB=94=A9=20=EC=8B=9C=20itemDecor?= =?UTF-8?q?ation=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/dpm/presentation/scrap/ScrapActivity.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/presentation/src/main/java/com/dpm/presentation/scrap/ScrapActivity.kt b/presentation/src/main/java/com/dpm/presentation/scrap/ScrapActivity.kt index eda3af3d..4f0cd223 100644 --- a/presentation/src/main/java/com/dpm/presentation/scrap/ScrapActivity.kt +++ b/presentation/src/main/java/com/dpm/presentation/scrap/ScrapActivity.kt @@ -77,8 +77,11 @@ class ScrapActivity : BaseActivity( 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) }