fix: Bottom nav visible on deep link

This commit is contained in:
ziro 2024-01-14 11:11:58 +07:00
parent facb8f84e9
commit 0a8d37c1ed
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -1055,6 +1055,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
} }
} }
Intent.ACTION_VIEW -> { Intent.ACTION_VIEW -> {
if (router.backstack.isEmpty()) nav.selectedItemId = R.id.nav_library
if (intent.scheme == "tachiyomi" && intent.data?.host == "add-repo") { if (intent.scheme == "tachiyomi" && intent.data?.host == "add-repo") {
intent.data?.getQueryParameter("url")?.let { repoUrl -> intent.data?.getQueryParameter("url")?.let { repoUrl ->
router.popToRoot() router.popToRoot()