diff --git a/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt b/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt index 59082c2e0c..4fc6d3c830 100644 --- a/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt +++ b/demo/src/main/java/com/google/android/fhir/demo/PeriodicSyncFragment.kt @@ -87,14 +87,13 @@ class PeriodicSyncFragment : Fragment() { val progressLabel = requireView().findViewById(R.id.progress_percentage_label) if (uiState.progress != null) { - syncIndicator.isIndeterminate = false syncIndicator.progress = uiState.progress syncIndicator.visibility = View.VISIBLE progressLabel.text = "${uiState.progress}%" progressLabel.visibility = View.VISIBLE } else { - syncIndicator.isIndeterminate = true + syncIndicator.progress = 0 progressLabel.visibility = View.GONE } } diff --git a/demo/src/main/res/layout/periodic_sync.xml b/demo/src/main/res/layout/periodic_sync.xml index 40d8625db4..3a3b835342 100644 --- a/demo/src/main/res/layout/periodic_sync.xml +++ b/demo/src/main/res/layout/periodic_sync.xml @@ -72,7 +72,6 @@ app:layout_constraintEnd_toEndOf="parent" android:layout_marginTop="36dp" style="?android:attr/progressBarStyleHorizontal" - android:indeterminate="true" />