mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Add check for backstack size before pushing DownloadController (#5312)
This commit is contained in:
		| @@ -172,7 +172,9 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() { | ||||
|                         controller?.showSettingsSheet() | ||||
|                     } | ||||
|                     R.id.nav_updates -> { | ||||
|                         router.pushController(DownloadController().withFadeTransaction()) | ||||
|                         if (router.backstackSize == 1) { | ||||
|                             router.pushController(DownloadController().withFadeTransaction()) | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user