FileActionsBottomSheet: color loading animation with primary color

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-11-16 13:05:41 +01:00
parent 4523537587
commit 7cb85ec6a1
No known key found for this signature in database
GPG key ID: 2585783189A62105
2 changed files with 1 additions and 2 deletions

View file

@ -184,6 +184,7 @@ class FileActionsBottomSheet private constructor() : BottomSheetDialogFragment()
if (state is FileActionsViewModel.UiState.Loading) {
binding.bottomSheetLoading.isVisible = true
binding.bottomSheetContent.isVisible = false
viewThemeUtils.platform.colorCircularProgressBar(binding.bottomSheetLoading)
} else {
binding.bottomSheetLoading.isVisible = false
binding.bottomSheetContent.isVisible = true

View file

@ -38,7 +38,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- TODO theme this! -->
<com.google.android.material.progressindicator.CircularProgressIndicator
android:indeterminate="true"
android:id="@+id/bottom_sheet_loading"
@ -82,7 +81,6 @@
android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
tools:text="Test file name which is very very very very very long.pdf" />
<!-- TODO test scroll -->
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"