Details activity ui fixes
This commit is contained in:
@@ -181,7 +181,7 @@ class DetailsActivity :
|
|||||||
viewModel.isStatsAvailable.observe(this, menuInvalidator)
|
viewModel.isStatsAvailable.observe(this, menuInvalidator)
|
||||||
viewModel.remoteManga.observe(this, menuInvalidator)
|
viewModel.remoteManga.observe(this, menuInvalidator)
|
||||||
viewModel.branches.observe(this) {
|
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
|
viewBinding.infoLayout.chipBranch.isCloseIconVisible = it.size > 1
|
||||||
}
|
}
|
||||||
viewModel.chapters.observe(this, PrefetchObserver(this))
|
viewModel.chapters.observe(this, PrefetchObserver(this))
|
||||||
|
|||||||
@@ -406,7 +406,6 @@
|
|||||||
android:nestedScrollingEnabled="false"
|
android:nestedScrollingEnabled="false"
|
||||||
android:outlineProvider="background"
|
android:outlineProvider="background"
|
||||||
app:behavior_fitToContents="false"
|
app:behavior_fitToContents="false"
|
||||||
app:behavior_halfExpandedRatio="0.8"
|
|
||||||
app:behavior_hideable="false"
|
app:behavior_hideable="false"
|
||||||
app:behavior_peekHeight="@dimen/details_bs_peek_height"
|
app:behavior_peekHeight="@dimen/details_bs_peek_height"
|
||||||
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
|
||||||
|
|||||||
Reference in New Issue
Block a user