Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahabMemon committed Feb 9, 2024
1 parent abd7062 commit 339ee92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ class QuestionnaireActivity : BaseMultiLanguageActivity() {
val questionnaireFragmentBuilder =
QuestionnaireFragment.builder()
.setQuestionnaire(questionnaire.json())
.setCustomQuestionnaireItemViewHolderFactoryMatchersProvider(OPENSRP_ITEM_VIEWHOLDER_FACTORY_MATCHERS_PROVIDER)
.setCustomQuestionnaireItemViewHolderFactoryMatchersProvider(
OPENSRP_ITEM_VIEWHOLDER_FACTORY_MATCHERS_PROVIDER,
)
.showAsterisk(questionnaireConfig.showRequiredTextAsterisk)
.showRequiredText(questionnaireConfig.showRequiredText)

Expand All @@ -189,12 +191,6 @@ class QuestionnaireActivity : BaseMultiLanguageActivity() {
)
}

// if (launchContextResources.isNotEmpty()) {
// questionnaireFragmentBuilder.setQuestionnaireLaunchContexts(
// launchContextResources.map { it.json() },
// )
// }

// Populate questionnaire with latest QuestionnaireResponse
if (questionnaireConfig.isEditable()) {
val latestQuestionnaireResponse =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ import com.google.android.fhir.logicalId
import com.google.android.fhir.search.Search
import com.google.android.fhir.workflow.FhirOperator
import dagger.hilt.android.lifecycle.HiltViewModel
import java.util.Date
import java.util.UUID
import javax.inject.Inject
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -79,9 +82,6 @@ import org.smartregister.fhircore.engine.util.fhirpath.FhirPathDataExtractor
import org.smartregister.fhircore.engine.util.helper.TransformSupportServices
import org.smartregister.fhircore.quest.R
import timber.log.Timber
import java.util.Date
import java.util.UUID
import javax.inject.Inject

@HiltViewModel
class QuestionnaireViewModel
Expand Down Expand Up @@ -798,7 +798,6 @@ constructor(
return questionnaireResponses.maxByOrNull { it.meta.lastUpdated }
}


/**
* Return [Resource]s to be used in the launch context of the questionnaire. Launch context allows
* information to be passed into questionnaire based on the context in which the questionnaire is
Expand Down

0 comments on commit 339ee92

Please sign in to comment.