Skip to content

Commit

Permalink
🐛 Fix: 카테고리 공유 설정 오류 해결
Browse files Browse the repository at this point in the history
- 서버 명칭과 달라서 생겼던 문제
- isShared -> shared로 이름 변경

Related to: #346
  • Loading branch information
nahy-512 committed Feb 8, 2025
1 parent 6e9a05e commit b3fc808
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ class CategoryDTO (
val categoryName: String,
val colorId: Int,
val baseCategory: Boolean,
val isShared: Boolean
val shared: Boolean
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object CategoryMapper {
categoryId = this.categoryId,
name = this.categoryName,
colorId = this.colorId,
isShare = this.isShared,
isShare = this.shared,
basicCategory = this.baseCategory
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class CategoryDetailFragment
val isShare = viewModel.category.value!!.isShare
binding.categoryShareToggleIv.apply {
// 첫 진입 시 토글 이미지 세팅
isChecked = isShare
isChecked = viewModel.category.value!!.isShare
// 토글 클릭 시 이미지 세팅
setOnClickListener {
(it as SwitchCompat).isChecked = !isShare
Expand Down

0 comments on commit b3fc808

Please sign in to comment.