fix(home): 추천 콘텐츠 섹션 제목 - 추천 콘텐츠로 고정
This commit is contained in:
@@ -1222,14 +1222,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setupRecommendContent() {
|
private fun setupRecommendContent() {
|
||||||
// 제목 설정: 로그인 여부에 따라 변경
|
|
||||||
val title = if (SharedPreferenceManager.token.isNotBlank()) {
|
|
||||||
"${SharedPreferenceManager.nickname}님을 위한 추천 콘텐츠"
|
|
||||||
} else {
|
|
||||||
"추천 콘텐츠"
|
|
||||||
}
|
|
||||||
binding.tvRecommendContent.text = title
|
|
||||||
|
|
||||||
// 아이템 정사각형 크기 계산: (screenWidth - (24*2) - 16) / 2
|
// 아이템 정사각형 크기 계산: (screenWidth - (24*2) - 16) / 2
|
||||||
val itemSize = ((screenWidth - 24f.dpToPx() * 2 - 16f.dpToPx()) / 2f).toInt()
|
val itemSize = ((screenWidth - 24f.dpToPx() * 2 - 16f.dpToPx()) / 2f).toInt()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user