Skip to content

Commit

Permalink
refactor: 변수명을 수정한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
boogi-woogi committed Nov 21, 2023
1 parent 8e3839b commit f56f942
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 @@ -83,7 +83,7 @@ class ScrapListActivity : AppCompatActivity() {
)

is ScrapUiState.Selection -> {
binding.scrapIbExtractPlaylist.isEnabled = it.isAvailableExtraction
binding.scrapIbExtractPlaylist.isEnabled = it.isExtractionAvailable
binding.adapter?.submitList(
scrapViewModel.uiState.value?.rooms
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ScrapViewModel @Keep constructor(
_uiState.value = ScrapUiState.Selection(
onSelect = ::switchSelection,
rooms = rooms.value.map { it.toModel(selectable = true) },
isAvailableExtraction = rooms.isSelected
isExtractionAvailable = rooms.isSelected
)
}
} else {
Expand All @@ -84,7 +84,7 @@ class ScrapViewModel @Keep constructor(
_uiState.value = ScrapUiState.Selection(
onSelect = ::switchSelection,
rooms = rooms.value.map { it.toModel(selectable = true) },
isAvailableExtraction = rooms.isSelected
isExtractionAvailable = rooms.isSelected
)
}

Expand Down

0 comments on commit f56f942

Please sign in to comment.