File tree Expand file tree Collapse file tree
domain/src/main/java/com/threegap/bitnagil/domain/writeroutine/model
presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ data class Date(
1212 }
1313
1414 fun toFormattedString (): String {
15- return " %04d. %02d. %02d" .format(year, month, day)
15+ return " %04d- %02d- %02d" .format(year, month, day)
1616 }
1717}
Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ class WriteRoutineViewModel @AssistedInject constructor(
463463 when (val writeRoutineType = currentState.writeRoutineType) {
464464 WriteRoutineType .Add -> {
465465 sendIntent(WriteRoutineIntent .RegisterRoutineLoading )
466- val subRoutines = if (currentState.selectNotUseSUbRoutines) emptyList() else currentState.subRoutineNames
466+ val subRoutines = if (currentState.selectNotUseSUbRoutines) emptyList() else currentState.subRoutineNames.filter { it.isNotEmpty() }
467467
468468 val registerRoutineResult = registerRoutineUseCase(
469469 name = currentState.routineName,
@@ -482,7 +482,7 @@ class WriteRoutineViewModel @AssistedInject constructor(
482482 }
483483 is WriteRoutineType .Edit -> {
484484 val currentRoutineId = routineId ? : return @launch
485- val subRoutines = if (currentState.selectNotUseSUbRoutines) emptyList() else currentState.subRoutineNames
485+ val subRoutines = if (currentState.selectNotUseSUbRoutines) emptyList() else currentState.subRoutineNames.filter { it.isNotEmpty() }
486486 val routineUpdateType = if (writeRoutineType.updateRoutineFromNowDate) {
487487 RoutineUpdateType .Today
488488 } else {
You can’t perform that action at this time.
0 commit comments