Skip to content

Commit

Permalink
[feature/#871] rename onDismiss function
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Oct 14, 2024
1 parent c487625 commit 7746918
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 @@ -214,7 +214,7 @@ class MyPageActivity : AppCompatActivity() {
if (myPageAction != null) {
ShowMyPageDialog(
action = myPageAction ?: return@Scaffold,
onDismissRequest = viewModel::onDismiss,
onDismissRequest = viewModel::closeDialog,
onClearSoptampClick = viewModel::resetSoptamp,
onLogoutClick = viewModel::logOut
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MyPageViewModel @Inject constructor(
fun resetSoptamp() {
viewModelScope.launch {
stampRepository.deleteAllStamps()
.onSuccess { onDismiss() }
.onSuccess { closeDialog() }
.onFailure { Timber.e(it) }
}
}
Expand All @@ -94,7 +94,7 @@ class MyPageViewModel @Inject constructor(
_action.value = action
}

fun onDismiss() {
fun closeDialog() {
_action.value = null
}
}

0 comments on commit 7746918

Please sign in to comment.