From 46734c525ff6f893096ed16c23e0266b61e61b57 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 3 Jul 2022 17:39:11 -0400 Subject: [PATCH] Increase height of transition view in webtoon viewers (fixes #7242) --- .../kanade/tachiyomi/ui/reader/viewer/ReaderTransitionView.kt | 1 - .../ui/reader/viewer/webtoon/WebtoonTransitionHolder.kt | 2 +- app/src/main/res/layout/reader_transition_view.xml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderTransitionView.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderTransitionView.kt index 864fff384..38786142a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderTransitionView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderTransitionView.kt @@ -26,7 +26,6 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At is ChapterTransition.Prev -> bindPrevChapterTransition(transition) is ChapterTransition.Next -> bindNextChapterTransition(transition) } - missingChapterWarning(transition) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonTransitionHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonTransitionHolder.kt index cad1cd218..c905f1275 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonTransitionHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonTransitionHolder.kt @@ -46,7 +46,7 @@ class WebtoonTransitionHolder( layout.orientation = LinearLayout.VERTICAL layout.gravity = Gravity.CENTER - val paddingVertical = 48.dpToPx + val paddingVertical = 128.dpToPx val paddingHorizontal = 32.dpToPx layout.setPadding(paddingHorizontal, paddingVertical, paddingHorizontal, paddingVertical) diff --git a/app/src/main/res/layout/reader_transition_view.xml b/app/src/main/res/layout/reader_transition_view.xml index 2634120c5..2ec51224b 100644 --- a/app/src/main/res/layout/reader_transition_view.xml +++ b/app/src/main/res/layout/reader_transition_view.xml @@ -11,7 +11,6 @@ android:id="@+id/upper_text" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" android:textAppearance="?attr/textAppearanceTitleMedium" tools:text="Top" /> @@ -19,7 +18,7 @@ android:id="@+id/warning" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" + android:layout_marginTop="16dp" android:gravity="center_vertical">