mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 20:33:47 +02:00
Maybe this solves the back button issue in some phones
This commit is contained in:
@@ -99,7 +99,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val uri = intent?.data?.toString()
|
val uri = intent?.data?.toString()
|
||||||
val startingPage = uriToRoute(uri)
|
val startingPage = uriToRoute(uri)
|
||||||
if (startingPage != null) {
|
if (startingPage != null) {
|
||||||
navController.navigate(startingPage)
|
navController.navigate(startingPage) {
|
||||||
|
popUpTo(Route.Home.route)
|
||||||
|
launchSingleTop = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user