Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Santosh Pingle committed Oct 24, 2024
1 parent 57c4d69 commit 20e30f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ class PeriodicSyncFragment : Fragment() {
val progressLabel = requireView().findViewById<TextView>(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
}
}
Expand Down
1 change: 0 additions & 1 deletion demo/src/main/res/layout/periodic_sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="36dp"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminate="true"
/>

<TextView
Expand Down

0 comments on commit 20e30f6

Please sign in to comment.