mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-30 18:42:40 +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 startingPage = uriToRoute(uri)
|
||||
if (startingPage != null) {
|
||||
navController.navigate(startingPage)
|
||||
navController.navigate(startingPage) {
|
||||
popUpTo(Route.Home.route)
|
||||
launchSingleTop = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user