Merge "Add debug flag for App Settings page"

This commit is contained in:
Chaohui Wang
2022-09-26 07:58:20 +00:00
committed by Android (Google) Code Review
2 changed files with 23 additions and 0 deletions

View File

@@ -60,6 +60,13 @@ object AppSettingsProvider : SettingsPageProvider {
@Composable
fun navigator(app: ApplicationInfo) = navigator(route = "$name/${app.toRoute()}")
/**
* Gets the route to the App Settings page.
*
* Expose route to enable enter from non-SPA pages.
*/
fun getRoute(packageName: String, userId: Int): String = "$name/$packageName/$userId"
}
@Composable