From 0e29ec6718ad020072c04c437fbae156e086ceae Mon Sep 17 00:00:00 2001 From: hjh1161514 Date: Sat, 14 Jan 2023 22:55:41 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20=EC=B5=9C=EC=8B=A0=20=EC=97=AC=ED=96=89?= =?UTF-8?q?=EC=A7=80=EC=99=80=20=EC=97=A0=ED=8B=B0=EB=B7=B0=20=EA=B2=B9?= =?UTF-8?q?=EC=B9=98=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?bug/#304?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/starters/yeogida/presentation/home/HomeFragment.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/starters/yeogida/presentation/home/HomeFragment.kt b/app/src/main/java/com/starters/yeogida/presentation/home/HomeFragment.kt index 535144b..3d0014c 100644 --- a/app/src/main/java/com/starters/yeogida/presentation/home/HomeFragment.kt +++ b/app/src/main/java/com/starters/yeogida/presentation/home/HomeFragment.kt @@ -96,6 +96,7 @@ class HomeFragment : Fragment() { YeogidaClient.homeService.getRecentTrip().customEnqueue( onSuccess = { recentTripAdapter.tripList.clear() + binding.tvHomeFollowRecentTripEmpty.text = "" it.data?.let { data -> recentTripAdapter.tripList.addAll(data.tripList) } recentTripAdapter.notifyDataSetChanged() } @@ -114,9 +115,13 @@ class HomeFragment : Fragment() { }, onError = { if (it.message == "No one Follow Error!") { + recentTripAdapter.tripList.clear() + recentTripAdapter.notifyDataSetChanged() binding.tvHomeFollowRecentTripEmpty.text = "아직 팔로잉한 사람이 없어요\n사람들을 팔로잉 해보세요!" } else if (it.message == "Trip NotFound Error!") { + recentTripAdapter.tripList.clear() + recentTripAdapter.notifyDataSetChanged() binding.tvHomeFollowRecentTripEmpty.text = "팔로잉들이 아직 게시글을 올리지 않았어요\n더 많은 사람들을 팔로잉 해보세요!" }