Skip to content

Commit

Permalink
refator(SearchUiState): 검색 상태 확인 커스텀 게터 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHoonC committed Mar 24, 2024
1 parent 4bf4fde commit 49db2d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sealed interface SearchUiState {

val shouldShowRecentSearchSuccessNotEmpty get() = this is RecentSearchSuccess && recentSearchQueries.isNotEmpty()
val shouldShowEmptyRecentSearchSuccessEmpty get() = this is RecentSearchSuccess && recentSearchQueries.isEmpty()
val shouldShowEmptyRecentSearchSuccess get() = this is RecentSearchSuccess
val shouldShowRecentSearchSuccess get() = this is RecentSearchSuccess
val shouldShowSearchSuccess get() = this is SearchSuccess
val shouldShowLoading get() = this is Loading
val shouldShowError get() = this is Error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
android:textColor="@color/contents_gray_07"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/clAppBarSearch"
app:visibility="@{uiState.shouldShowEmptyRecentSearchSuccess}" />
app:visibility="@{uiState.shouldShowRecentSearchSuccess}" />

<TextView
android:id="@+id/tvDeleteAll"
Expand All @@ -135,7 +135,7 @@
app:layout_constraintBottom_toBottomOf="@id/tvRecentSearch"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvRecentSearch"
app:visibility="@{uiState.shouldShowEmptyRecentSearchSuccess}" />
app:visibility="@{uiState.shouldShowRecentSearchSuccess}" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRecentSearch"
Expand Down

0 comments on commit 49db2d9

Please sign in to comment.