From a72c824183ebffdc1e3fbb6764fb87b455c97fbc Mon Sep 17 00:00:00 2001 From: Ivan Magda Date: Wed, 18 Sep 2024 20:21:11 +0900 Subject: [PATCH] ALTAPPS-1357: Fix StepQuizCodeBlanksReducer.handleSpaceButtonClicked newChildSuggestions --- config/detekt/baseline.xml | 2 ++ .../presentation/StepQuizCodeBlanksReducer.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml index b3066984b..bb7d6eeb2 100644 --- a/config/detekt/baseline.xml +++ b/config/detekt/baseline.xml @@ -259,12 +259,14 @@ ReturnCount:TopicsRepetitionsActionDispatcher.kt$TopicsRepetitionsActionDispatcher$override suspend fun doSuspendableAction(action: Action) SpreadOperator:StepQuizViewStateDelegateFactory.kt$StepQuizViewStateDelegateFactory$( *listOfNotNull( fragmentStepQuizBinding.stepQuizFeedbackBlocks.root, descriptionBinding?.stepQuizDescription, fragmentStepQuizBinding.stepQuizButtons.stepQuizSubmitButton, *quizViews ).toTypedArray() ) SpreadOperator:StepQuizViewStateDelegateFactory.kt$StepQuizViewStateDelegateFactory$( *listOfNotNull( skeletonView, descriptionBinding?.stepQuizDescriptionSkeleton ).toTypedArray() ) + SwallowedException:Block.kt$e: Exception SwallowedException:NotificationExtensions.kt$e: ActivityNotFoundException SwallowedException:ProfileSettingsDialogFragment.kt$ProfileSettingsDialogFragment$e: ActivityNotFoundException SwallowedException:PushNotificationData.kt$PushNotificationData$e: Exception SwallowedException:TimeIntervalPickerDialogFragment.kt$TimeIntervalPickerDialogFragment$exception: Exception ThrowsCount:FillBlanksResolver.kt$FillBlanksResolver$@Throws(InvalidFillBlanksConfigException::class) fun resolve(dataset: Dataset): FillBlanksMode TooGenericExceptionCaught:BaseStateRepository.kt$BaseStateRepository$e: Exception + TooGenericExceptionCaught:Block.kt$e: Exception TooGenericExceptionCaught:LatexWebView.kt$LatexWebView$e: Exception TooGenericExceptionCaught:PushNotificationData.kt$PushNotificationData$e: Exception TooGenericExceptionCaught:PushNotificationsInteractor.kt$PushNotificationsInteractor$e: Exception diff --git a/shared/src/commonMain/kotlin/org/hyperskill/app/step_quiz_code_blanks/presentation/StepQuizCodeBlanksReducer.kt b/shared/src/commonMain/kotlin/org/hyperskill/app/step_quiz_code_blanks/presentation/StepQuizCodeBlanksReducer.kt index 90eb004db..455559ee4 100644 --- a/shared/src/commonMain/kotlin/org/hyperskill/app/step_quiz_code_blanks/presentation/StepQuizCodeBlanksReducer.kt +++ b/shared/src/commonMain/kotlin/org/hyperskill/app/step_quiz_code_blanks/presentation/StepQuizCodeBlanksReducer.kt @@ -615,7 +615,8 @@ class StepQuizCodeBlanksReducer( activeChild.selectedSuggestion in state.codeBlanksOperationsSuggestions -> state.codeBlanksVariablesSuggestions + state.codeBlanksStringsSuggestions - else -> emptyList() + else -> + state.codeBlanksOperationsSuggestions + state.codeBlanksVariablesAndStringsSuggestions } val newChild = CodeBlockChild.SelectSuggestion(