Skip to content

Commit

Permalink
[FIX/#275] 검색 결과 없을 때 그래픽 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Oct 6, 2024
1 parent f788d48 commit 116b1c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ fun ImageSlider(
LaunchedEffect(autoScroll.value) {
if (autoScroll.value) {
while (true) {
delay(2000)
delay(3000)
if (!pagerState.isScrollInProgress) {
val nextPage = pagerState.currentPage + 1
pagerState.animateScrollToPage(nextPage)
pagerState.animateScrollToPage(nextPage % infiniteImages.size)
}
}
}
}

LaunchedEffect(pagerState.currentPage) {
val currentPageMod = pagerState.currentPage % images.size
if (pagerState.currentPage < images.size) {
pagerState.scrollToPage(pagerState.currentPage + images.size)
} else if (pagerState.currentPage >= 2 * images.size) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ fun SearchProcessScreen(
}
}

if (state.existSearchResults) {
if (internSearchResultData.isNotEmpty()) {
LazyColumn(
contentPadding = PaddingValues(
top = 12.dp,
Expand Down Expand Up @@ -319,6 +319,7 @@ fun SearchProcessScreen(
color = Grey400,
)
}

}
}
}
Expand Down

0 comments on commit 116b1c0

Please sign in to comment.