From 2f91c27df2eec0a86a41936a7185c39424838931 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 4 Sep 2021 15:23:00 -0400 Subject: [PATCH] Don't allow focus on reader containers (closes #5727) --- .../eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt | 1 + .../kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt index 2f9a36b34..2f568864d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt @@ -75,6 +75,7 @@ abstract class PagerViewer(val activity: ReaderActivity) : BaseViewer { init { pager.isVisible = false // Don't layout the pager yet pager.layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT) + pager.isFocusable = false pager.offscreenPageLimit = 1 pager.id = R.id.reader_pager pager.adapter = adapter diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt index e41aae4a9..05ca34185 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt @@ -83,6 +83,7 @@ class WebtoonViewer(val activity: ReaderActivity, val isContinuous: Boolean = tr init { recycler.isVisible = false // Don't let the recycler layout yet recycler.layoutParams = ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT) + recycler.isFocusable = false recycler.itemAnimator = null recycler.layoutManager = layoutManager recycler.adapter = adapter