-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MOD/#203] 최근 검색어 중복을 제거 하도록 수정합니다 #204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오랜만에 쿼리할라니까 머리가 말랑말랑
수고하셨습니당!! LGTM🚀🚀
@Query("DELETE FROM search WHERE id = :id") | ||
suspend fun deleteSearchById(id: Int) | ||
// 검색어가 6개 이상인 경우 가장 오래된 검색어 삭제 | ||
if (getSearchCount() >= 6) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P4: 6도 상수로 빼주면 좋을 것 같아요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
인정~ 뺄까말까했는데 빼도록 하겠습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT~
역시 쿼리는 한민재
// 빈 문자열이나 공백만 있는 경우 저장하지 않음 | ||
if (trimmedText.isBlank()) return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
early return 조아요~
근데 갑자기 궁금한건데 쟤 왜저렇게 넓음? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생많으셨습니다~
제가 가진 유일한 안드로이드패드로 녹화했숩니다ㅠ 하지만 대응 잘되죠?? |
Related issue 🛠
Work Description ✏️
Screenshot 📸
recent_search.mp4
To Reviewers 📢
오랜만에 쿼리할라니까 머리가 말랑말랑