From 64f95af3e51bc721db1be137e34007e72ee4aeb9 Mon Sep 17 00:00:00 2001 From: Hunter Nickel Date: Fri, 4 Jun 2021 16:52:30 -0600 Subject: [PATCH] Add check for backstack size before pushing DownloadController (#5312) --- app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 c0180966c..2427fc679 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 @@ -172,7 +172,9 @@ class MainActivity : BaseViewBindingActivity() { controller?.showSettingsSheet() } R.id.nav_updates -> { - router.pushController(DownloadController().withFadeTransaction()) + if (router.backstackSize == 1) { + router.pushController(DownloadController().withFadeTransaction()) + } } } }