From 437c995d129b398174e36512f5f180a4602e6e37 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 28 Mar 2021 16:13:34 -0400 Subject: [PATCH] Show nav overlay on invert tap change Based on https://github.com/Jays2Kings/tachiyomiJ2K/commit/db4eca90e957d70a102aa631708a156c29418bd3 --- .../tachiyomi/ui/reader/viewer/pager/PagerConfig.kt | 8 +++++++- .../tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerConfig.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerConfig.kt index 0f835e74c..dba0e1c4e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerConfig.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerConfig.kt @@ -43,7 +43,13 @@ class PagerConfig( .register({ navigationMode = it }, { updateNavigation(navigationMode) }) preferences.pagerNavInverted() - .register({ tappingInverted = it }, { navigator.invertMode = it }) + .register( + { tappingInverted = it }, + { + navigator.invertMode = it + navigationModeChangedListener?.invoke() + } + ) preferences.dualPageSplitPaged() .register({ dualPageSplit = it }, { imagePropertyChangedListener?.invoke() }) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt index f59a96a91..19a121e64 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt @@ -36,7 +36,13 @@ class WebtoonConfig( .register({ navigationMode = it }, { updateNavigation(it) }) preferences.webtoonNavInverted() - .register({ tappingInverted = it }, { navigator.invertMode = it }) + .register( + { tappingInverted = it }, + { + navigator.invertMode = it + navigationModeChangedListener?.invoke() + } + ) preferences.dualPageSplitWebtoon() .register({ dualPageSplit = it }, { imagePropertyChangedListener?.invoke() })