diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/filter/ui/FilterSheetFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/filter/ui/FilterSheetFragment.kt index 03d4d3eb7..bb668af73 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/filter/ui/FilterSheetFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/filter/ui/FilterSheetFragment.kt @@ -33,7 +33,7 @@ class FilterSheetFragment : val adapter = FilterAdapter(filter, this) binding.recyclerView.adapter = adapter filter.filterItems.observe(viewLifecycleOwner, adapter) - binding.recyclerView.addItemDecoration(TypedListSpacingDecoration(binding.root.context, false)) + binding.recyclerView.addItemDecoration(TypedListSpacingDecoration(binding.root.context, true)) if (dialog == null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { binding.recyclerView.scrollIndicators = 0 diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/adapter/TypedListSpacingDecoration.kt b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/adapter/TypedListSpacingDecoration.kt index eb0509865..6a99fc7be 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/adapter/TypedListSpacingDecoration.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/adapter/TypedListSpacingDecoration.kt @@ -70,4 +70,6 @@ class TypedListSpacingDecoration( private fun Rect.set(spacing: Int) = set(spacing, spacing, spacing, spacing) private fun ListItemType?.isEdgeToEdge() = this == ListItemType.MANGA_NESTED_GROUP + || this == ListItemType.FILTER_SORT + || this == ListItemType.FILTER_TAG } diff --git a/app/src/main/res/layout/activity_details.xml b/app/src/main/res/layout/activity_details.xml index f401b2a27..beb67f619 100644 --- a/app/src/main/res/layout/activity_details.xml +++ b/app/src/main/res/layout/activity_details.xml @@ -41,6 +41,7 @@ style="@style/Widget.Material3.BottomSheet" android:layout_width="match_parent" android:layout_height="match_parent" + android:backgroundTint="?colorBackgroundFloating" android:orientation="vertical" android:visibility="gone" app:behavior_hideable="false" @@ -51,8 +52,7 @@ + android:layout_height="wrap_content"> + android:layout_height="match_parent" + tools:background="@color/grey" /> @@ -46,6 +48,7 @@ android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_margin="8dp" + app:cardBackgroundColor="?colorBackgroundFloating" app:layout_insetEdge="bottom"> Too many requests. Try again later Show a list of related manga. In some cases it may be inaccurate or missing Advanced + Default section diff --git a/app/src/main/res/xml/pref_appearance.xml b/app/src/main/res/xml/pref_appearance.xml index 0d3744269..f33d73f96 100644 --- a/app/src/main/res/xml/pref_appearance.xml +++ b/app/src/main/res/xml/pref_appearance.xml @@ -60,7 +60,7 @@ android:entries="@array/first_nav_item" android:entryValues="@array/values_first_nav_item" android:key="nav_first" - android:title="Default section" + android:title="@string/default_section" app:allowDividerAbove="true" app:useSimpleSummaryProvider="true" />