From 41c060e28b94362779d1e51d05ff019d2bcdcb56 Mon Sep 17 00:00:00 2001 From: Hunter Nickel Date: Fri, 30 Jul 2021 16:14:16 -0600 Subject: [PATCH] Add functionality to open SettingsMainController when double-tapping the "more" button (#5633) --- .../main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index aad8e0f16e..7c5931c1fb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -55,6 +55,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaController import eu.kanade.tachiyomi.ui.more.MoreController import eu.kanade.tachiyomi.ui.recent.history.HistoryController import eu.kanade.tachiyomi.ui.recent.updates.UpdatesController +import eu.kanade.tachiyomi.ui.setting.SettingsMainController import eu.kanade.tachiyomi.util.lang.launchIO import eu.kanade.tachiyomi.util.lang.launchUI import eu.kanade.tachiyomi.util.system.dpToPx @@ -191,6 +192,11 @@ class MainActivity : BaseViewBindingActivity() { router.pushController(DownloadController().withFadeTransaction()) } } + R.id.nav_more -> { + if (router.backstackSize == 1) { + router.pushController(SettingsMainController().withFadeTransaction()) + } + } } } true