Skip to content

Commit

Permalink
add custom sync state on the register fragment.
Browse files Browse the repository at this point in the history
Signed-off-by: Lentumunai-Mark <[email protected]>
  • Loading branch information
Lentumunai-Mark committed Dec 16, 2024
1 parent 98dad18 commit 091fd8e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class RegisterFragment : Fragment(), OnSyncListener {
val scope = rememberCoroutineScope()
val scaffoldState = rememberScaffoldState()
val uiState: AppMainUiState = appMainViewModel.appMainUiState.value
val customSyncState = appMainViewModel.customSyncState.collectAsState().value

Check warning on line 105 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/register/RegisterFragment.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/register/RegisterFragment.kt#L105

Added line #L105 was not covered by tests
val openDrawer: (Boolean) -> Unit = { open: Boolean ->
scope.launch {
if (open) scaffoldState.drawerState.open() else scaffoldState.drawerState.close()
Expand Down Expand Up @@ -172,6 +173,7 @@ class RegisterFragment : Fragment(), OnSyncListener {
registerUiState = registerViewModel.registerUiState.value,
registerUiCountState = registerViewModel.registerUiCountState.value,
appDrawerUIState = appMainViewModel.appDrawerUiState.value,
customSyncState = customSyncState,

Check warning on line 176 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/register/RegisterFragment.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/register/RegisterFragment.kt#L176

Added line #L176 was not covered by tests
onAppMainEvent = { appMainViewModel.onEvent(it) },
searchQuery = searchViewModel.searchQuery,
currentPage = registerViewModel.currentPage,
Expand Down

0 comments on commit 091fd8e

Please sign in to comment.