Jelajahi Sumber

Add functionality to open SettingsMainController when double-tapping the "more" button (#5633)

Hunter Nickel 3 tahun lalu
induk
melakukan
41c060e28b

+ 6 - 0
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<MainActivityBinding>() {
                             router.pushController(DownloadController().withFadeTransaction())
                         }
                     }
+                    R.id.nav_more -> {
+                        if (router.backstackSize == 1) {
+                            router.pushController(SettingsMainController().withFadeTransaction())
+                        }
+                    }
                 }
             }
             true