File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,19 @@ class OnBoardingViewModel @AssistedInject constructor(
202202 }
203203
204204 if (currentState.currentStep == 1 ) {
205- return currentState.copy(
206- currentStep = 0 ,
207- currentOnBoardingPageInfo = OnBoardingPageInfo .Intro ,
208- nextButtonEnable = true ,
209- )
205+ return if (currentState.onBoardingSetType == OnBoardingSetType .RESET && existedOnBoardingAbstract != null ) {
206+ currentState.copy(
207+ currentStep = 0 ,
208+ currentOnBoardingPageInfo = existedOnBoardingAbstract!! ,
209+ nextButtonEnable = true ,
210+ )
211+ } else {
212+ currentState.copy(
213+ currentStep = 0 ,
214+ currentOnBoardingPageInfo = OnBoardingPageInfo .Intro ,
215+ nextButtonEnable = true ,
216+ )
217+ }
210218 }
211219
212220 val isSelectOnBoardingStep = currentState.currentStep <= selectOnBoardingPageInfos.size
You can’t perform that action at this time.
0 commit comments