diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt index f3f5e60fd9..e365e7d495 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt @@ -38,12 +38,9 @@ class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: Attr fun setup(activity: ReaderActivity) { presenter = activity.presenter - val primary = ColorUtils.setAlphaComponent( - activity.getResourceColor( - R.attr.colorSecondary - ), 200 - ) val fullPrimary = activity.getResourceColor(R.attr.colorSecondary) + val primary = ColorUtils.setAlphaComponent( fullPrimary, 200) + sheetBehavior = BottomSheetBehavior.from(this) chapters_button.setOnClickListener { if (sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) sheetBehavior?.state =