diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt index d2598a5c22..c6129fdd7e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt @@ -60,6 +60,7 @@ ExtensionAdapter.OnButtonClickListener, ext_recycler.setHasFixedSize(true) ext_recycler.addItemDecoration(ExtensionDividerItemDecoration(context)) ext_recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener) + adapter?.fastScroller = fast_scroller this.controller = controller presenter.onCreate() updateExtTitle() @@ -68,8 +69,8 @@ ExtensionAdapter.OnButtonClickListener, val array = context.obtainStyledAttributes(attrsArray) val headerHeight = array.getDimensionPixelSize(0, 0) array.recycle() - ext_recycler.doOnApplyWindowInsets { _, windowInsets, _ -> - ext_recycler.updateLayoutParams { + ext_recycler_layout.doOnApplyWindowInsets { v, windowInsets, _ -> + v.updateLayoutParams { topMargin = windowInsets.systemWindowInsetTop + headerHeight - (sheet_layout.height) } diff --git a/app/src/main/res/layout/extensions_bottom_sheet.xml b/app/src/main/res/layout/extensions_bottom_sheet.xml index 04eaaa369f..5d13352036 100644 --- a/app/src/main/res/layout/extensions_bottom_sheet.xml +++ b/app/src/main/res/layout/extensions_bottom_sheet.xml @@ -16,9 +16,9 @@ android:id="@+id/sheet_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" android:background="@drawable/bottom_sheet_rounded_background" android:backgroundTint="?attr/colorPrimaryVariant" + android:orientation="vertical" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -43,8 +43,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginBottom="10dp" android:layout_marginTop="6dp" + android:layout_marginBottom="10dp" android:ellipsize="end" android:gravity="center" android:maxLines="1" @@ -54,11 +54,24 @@ tools:text="Extensions" /> - + android:layout_height="match_parent"> + + + + + + \ No newline at end of file