File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,7 @@ private fun OnBoardingScreen(
115
115
items = currentOnBoardingPageInfo.routines,
116
116
nextButtonEnable = state.nextButtonEnable,
117
117
onClickNextButton = onClickRegister,
118
- onClickItem = if (state.onBoardingSetType.canSelectRoutine) {
119
- onClickRoutine
120
- } else {
121
- null
122
- },
118
+ onClickItem = onClickRoutine,
123
119
onClickSkip = if (state.onBoardingSetType.canSkip) {
124
120
onClickSkip
125
121
} else {
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class OnBoardingViewModel @AssistedInject constructor(
237
237
return currentState.copy(
238
238
currentOnBoardingPageInfo = recommendRoutinePageInfo,
239
239
currentStep = currentState.currentStep + 1 ,
240
- nextButtonEnable = ! currentState.onBoardingSetType.canSelectRoutine ,
240
+ nextButtonEnable = ! currentState.onBoardingSetType.mustSelectRecommendRoutine ,
241
241
)
242
242
}
243
243
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ import com.threegap.bitnagil.presentation.onboarding.model.navarg.OnBoardingScre
5
5
enum class OnBoardingSetType (
6
6
val subText : String ,
7
7
val canSkip : Boolean ,
8
- val canSelectRoutine : Boolean ,
8
+ val mustSelectRecommendRoutine : Boolean ,
9
9
) {
10
10
NEW (
11
11
subText = " 당신의 생활 패턴과 목표에 맞춰 구성된 맞춤 루틴이에요.\n 지금부터 가볍게 시작해보세요." ,
12
12
canSkip = true ,
13
- canSelectRoutine = true ,
13
+ mustSelectRecommendRoutine = true ,
14
14
),
15
15
RESET (
16
16
subText = " 생활 패턴과 목표에 맞춰 다시 구성된 맞춤 루틴이에요.\n 원하는 루틴을 선택해서 가볍게 시작해보세요." ,
17
17
canSkip = false ,
18
- canSelectRoutine = false ,
18
+ mustSelectRecommendRoutine = false ,
19
19
),
20
20
;
21
21
You can’t perform that action at this time.
0 commit comments