Details activity ui fixes

This commit is contained in:
Koitharu
2024-05-10 08:15:43 +03:00
parent e6c8591bf8
commit 77ad21bd7a
2 changed files with 1 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ class DetailsActivity :
viewModel.isStatsAvailable.observe(this, menuInvalidator)
viewModel.remoteManga.observe(this, menuInvalidator)
viewModel.branches.observe(this) {
viewBinding.infoLayout.chipBranch.isVisible = it.size > 1 || it.firstOrNull() != null
viewBinding.infoLayout.chipBranch.isVisible = it.size > 1 || !it.firstOrNull()?.name.isNullOrEmpty()
viewBinding.infoLayout.chipBranch.isCloseIconVisible = it.size > 1
}
viewModel.chapters.observe(this, PrefetchObserver(this))

View File

@@ -406,7 +406,6 @@
android:nestedScrollingEnabled="false"
android:outlineProvider="background"
app:behavior_fitToContents="false"
app:behavior_halfExpandedRatio="0.8"
app:behavior_hideable="false"
app:behavior_peekHeight="@dimen/details_bs_peek_height"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"