From 1657f04d555889a5e18803d30248fe3f3f72a591 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 30 Mar 2021 23:11:36 -0400 Subject: [PATCH] Add tooltips for previous/next chapter buttons Based on https://github.com/Jays2Kings/tachiyomiJ2K/commit/d0738f5b00dfc2f6225cf7a20758b61dcb720168 --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index e8f105ecaf..696ee3f445 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -539,6 +539,13 @@ class ReaderActivity : BaseRxActivity() binding.toolbar.title = manga.title binding.pageSeekbar.isRTL = newViewer is R2LPagerViewer + if (newViewer is R2LPagerViewer) { + binding.leftChapter.setTooltip(R.string.action_next_chapter) + binding.rightChapter.setTooltip(R.string.action_previous_chapter) + } else { + binding.leftChapter.setTooltip(R.string.action_previous_chapter) + binding.rightChapter.setTooltip(R.string.action_next_chapter) + } binding.pleaseWait.isVisible = true binding.pleaseWait.startAnimation(AnimationUtils.loadAnimation(this, R.anim.fade_in_long))