File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
presentation/src/main/java/com/threegap/bitnagil/presentation/setting Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,6 @@ class SettingViewModel @Inject constructor(
5656 return state.copy(showConfirmDialog = null )
5757 }
5858
59- is SettingIntent .ConfirmDialogAction -> {
60- return state.copy(showConfirmDialog = null )
61- }
62-
6359 SettingIntent .LogoutSuccess -> {
6460 sendSideEffect(SettingSideEffect .NavigateToIntro )
6561 return null
@@ -98,7 +94,7 @@ class SettingViewModel @Inject constructor(
9894 fun confirmDialogAction () {
9995 val currentDialogType = container.stateFlow.value.showConfirmDialog
10096
101- sendIntent(SettingIntent .ConfirmDialogAction )
97+ sendIntent(SettingIntent .HideConfirmDialog )
10298
10399 when (currentDialogType) {
104100 ConfirmDialogType .LOGOUT -> executeLogout()
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ sealed class SettingIntent : MviIntent {
1313
1414 data class ShowConfirmDialog (val type : ConfirmDialogType ) : SettingIntent()
1515 data object HideConfirmDialog : SettingIntent ()
16- data object ConfirmDialogAction : SettingIntent ()
1716 data object ToggleServiceAlarm : SettingIntent ()
1817 data object TogglePushAlarm : SettingIntent ()
1918 data object LogoutLoading : SettingIntent ()
You can’t perform that action at this time.
0 commit comments